make it easier to disable debug from the make command line
use "make -f makefile.gtk DEBUG=0"
This commit is contained in:
parent
c1e8bcc5fa
commit
834cd0298c
|
@ -19,7 +19,7 @@ DEBUG = 1
|
||||||
|
|
||||||
# common CPPFLAGS to all components, further CPPFLAGS customization in
|
# common CPPFLAGS to all components, further CPPFLAGS customization in
|
||||||
# directory specific makefile.gtk files.
|
# directory specific makefile.gtk files.
|
||||||
ifdef DEBUG
|
ifeq ($(DEBUG), 1)
|
||||||
CPPFLAGS = -Wall -g `wx-config --debug --cxxflags` -fno-strict-aliasing
|
CPPFLAGS = -Wall -g `wx-config --debug --cxxflags` -fno-strict-aliasing
|
||||||
LDFLAGS = -g #-v
|
LDFLAGS = -g #-v
|
||||||
else
|
else
|
||||||
|
@ -100,7 +100,7 @@ WXSYSLIB_WITH_GL= $(WXPATH)/$(PREFIX_WX_LIBS)-$(LIBVERSION).a \
|
||||||
-L/usr/lib $(PYLIBS)
|
-L/usr/lib $(PYLIBS)
|
||||||
else
|
else
|
||||||
|
|
||||||
ifdef DEBUG
|
ifeq ($(DEBUG), 1)
|
||||||
# debug wxWidgets
|
# debug wxWidgets
|
||||||
WXSYSLIB= `wx-config --debug --libs std`
|
WXSYSLIB= `wx-config --debug --libs std`
|
||||||
WXSYSLIB_WITH_GL= `wx-config --debug --libs std,gl`
|
WXSYSLIB_WITH_GL= `wx-config --debug --libs std,gl`
|
||||||
|
|
Loading…
Reference in New Issue