From b2e49f75d5668f42260dd058376c2de7be53062f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 18 Jun 2010 14:27:09 +0200 Subject: Add DEBUG and NDEBUG preprocessor defines when building debug and release modes, respectively. --- Makerules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index d111ce30..da653ddc 100644 --- a/Makerules +++ b/Makerules @@ -10,11 +10,11 @@ LD := $(CC) AR := ar ifeq "$(build)" "debug" -CFLAGS += -g -O0 +CFLAGS += -g -O0 -DDEBUG endif ifeq "$(build)" "release" -CFLAGS += -O3 +CFLAGS += -O3 -DNDEBUG endif ifeq "$(OS)" "Linux" -- cgit v1.2.3