summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-16 11:32:03 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-16 11:32:03 +0100
commite5649bbb4e6555370f4c46b070616c1b215a6135 (patch)
tree74f81856018c4aaade380cdba4c8b3da2937de57 /Makefile
parente06c7eeb845da73eac03dc35018bbf279ddd42ad (diff)
log: Add log_dbg() to facilitate debugging
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
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)