summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7bc8857..120bc58 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,10 @@ LDFLAGS ?=
CCQ = @echo -e " CC\t$<" && $(CC)
LDQ = @echo -e " LD\t$@" && $(CC)
+ifeq ($(DEBUG), 1)
+ CFLAGS += -g -DDEBUG
+endif
+
all: $(P)
$(P): $(OBJS)