summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kowalczyk <kkowalczyk@gmail.com>2008-03-27 09:42:46 +0100
committerKrzysztof Kowalczyk <kkowalczyk@gmail.com>2008-03-27 09:42:46 +0100
commit1f666a225b3cb4644e2959247b8630fa306a4d11 (patch)
treeff2e485ed0864606c68df738ebc79ca87eeac75b
parent63ba9f9bc0f989a5f801372bc4394aeac450af86 (diff)
downloadmupdf-1f666a225b3cb4644e2959247b8630fa306a4d11.tar.xz
Define DEBUG for debug builds and NDEBUG for release builds.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 39c18186..31d35921 100644
--- a/Makefile
+++ b/Makefile
@@ -35,9 +35,9 @@ CFLAGS += -g -Wall
CFLAGS += $(call cc-option, -Wno-pointer-sign, "")
ifeq ($(CFG),dbg)
-CFLAGS += -O0 ${INCS}
+CFLAGS += -O0 ${INCS} -DDEBUG
else
-CFLAGS += -O2 ${INCS}
+CFLAGS += -O2 ${INCS} -DNDEBUG
endif
ifeq ($(HOST),$(HOST_LINUX))