summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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