summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-17 20:51:55 -0700
committerPixel <pixel@nobis-crew.org>2011-10-17 20:51:55 -0700
commitb4e4b293d56533f40a4e0dba8afd496ccb6497b7 (patch)
tree4f4ca1efdba94fb9c5e67b04b22f30b2f62a2ea7 /Makefile
parent953a4572e09a05dab4487b75eeb1f267b9e22c3a (diff)
Adding the debug / non-debug defines from the Makefile, and avoiding pointer aliasing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 935a54f..be4afec 100644
--- a/Makefile
+++ b/Makefile
@@ -14,10 +14,12 @@ AR = ar rcs
BINEXT = bin
+CPPFLAGS += -fno-strict-aliasing
+
ifeq ($(DEBUG),)
-CPPFLAGS += -O3
+CPPFLAGS += -O3 -DNDEBUG
else
-CPPFLAGS += -g
+CPPFLAGS += -g -DDEBUG
LDFLAGS += -g
endif