summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarell Tan <darell.tan@gmail.com>2011-01-02 21:59:01 +0800
committerDarell Tan <darell.tan@gmail.com>2011-01-02 21:59:01 +0800
commit90b65fa827f95fa93446e604a449be05e64ae2b5 (patch)
tree9e0608af81c26af09c47c196a1c69f85a478951a
parent60a6c72901bcfdcbee9aed0b507b6328f7293a6e (diff)
downloadmdns-repeater-90b65fa827f95fa93446e604a449be05e64ae2b5.tar.gz
mdns-repeater-90b65fa827f95fa93446e604a449be05e64ae2b5.zip
Added Makefile rules to compile debug builds more easily.
-rw-r--r--Makefile10
1 files 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