pass -DDEBUG to compiler if DEBUG=1 on command line

This commit is contained in:
dickelbeck 2007-08-06 02:01:38 +00:00
parent 2e4c17a8b0
commit 02a2268f8a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ DEBUG = 0
# directory specific makefile.gtk files. # directory specific makefile.gtk files.
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
WXXFLAGS := $(shell wx-config --debug --cxxflags) WXXFLAGS := $(shell wx-config --debug --cxxflags)
CPPFLAGS = -Wall -g3 -ggdb3 ${WXXFLAGS} -fno-strict-aliasing CPPFLAGS = -Wall -g3 -ggdb3 ${WXXFLAGS} -fno-strict-aliasing -DDEBUG
LDFLAGS = -g3 -ggdb3 #-v LDFLAGS = -g3 -ggdb3 #-v
else else
WXXFLAGS := $(shell wx-config --cxxflags) WXXFLAGS := $(shell wx-config --cxxflags)