summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-18 14:27:09 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-18 14:27:09 +0200
commitb2e49f75d5668f42260dd058376c2de7be53062f (patch)
tree67ef25eee37c2904028edc3a2b62c14c46abe034
parent8e59d2f0e102476c0dbd897661860666c12e8aa6 (diff)
downloadmupdf-b2e49f75d5668f42260dd058376c2de7be53062f.tar.xz
Add DEBUG and NDEBUG preprocessor defines when building debug and release modes, respectively.
-rw-r--r--Makerules4
1 files changed, 2 insertions, 2 deletions
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"