commit 2cf1a72

Michael Forney  ·  2014-01-14 09:41:52 +0000 UTC
parent 9aeb725
Makefile: Add -DNDEBUG when ENABLE_DEBUG=0 to disable assertions
1 files changed,  +2, -0
+2, -0
1@@ -90,6 +90,8 @@ FINAL_CFLAGS += -Werror=implicit-function-declaration -Werror=implicit-int \
2 ifeq ($(ENABLE_DEBUG),1)
3     FINAL_CPPFLAGS += -DENABLE_DEBUG=1
4     FINAL_CFLAGS += -g
5+else
6+    FINAL_CPPFLAGS += -DNDEBUG
7 endif
8 
9 compile     = $(call quiet,CC) $(FINAL_CPPFLAGS) $(FINAL_CFLAGS) -c -o $@ $< \