From 90b65fa827f95fa93446e604a449be05e64ae2b5 Mon Sep 17 00:00:00 2001 From: Darell Tan Date: Sun, 2 Jan 2011 21:59:01 +0800 Subject: Added Makefile rules to compile debug builds more easily. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3fc13c8..b177f91 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,13 @@ # Makefile for mdns-repeater -CFLAGS=-Wall -Os -LDFLAGS=-s +CFLAGS=-Wall + +ifdef DEBUG +CFLAGS+= -g +else +CFLAGS+= -Os +LDFLAGS+= -s +endif .PHONY: all clean -- cgit v1.2.3