From e5649bbb4e6555370f4c46b070616c1b215a6135 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 16 Feb 2015 11:32:03 +0100 Subject: log: Add log_dbg() to facilitate debugging Signed-off-by: Tobias Klauser --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') 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) -- cgit v1.2.3-54-g00ecf