Exclude debug.c from compilation unless DEBUG is defined

This commit is contained in:
twinaphex
2015-08-06 13:37:09 +02:00
parent 21aa0759da
commit 9d99bd0eaa
3 changed files with 8 additions and 2 deletions

View File

@@ -216,7 +216,7 @@ else
endif
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
CFLAGS += -O0 -g -DDEBUG
else
CFLAGS += -O3 -DNDEBUG
endif