From 834cd0298caed567e75f6f21b5d35830d3e50ca6 Mon Sep 17 00:00:00 2001 From: raburton Date: Fri, 15 Jun 2007 07:16:40 +0000 Subject: [PATCH] make it easier to disable debug from the make command line use "make -f makefile.gtk DEBUG=0" --- libs.linux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs.linux b/libs.linux index e8b21de65c..0cb4661677 100644 --- a/libs.linux +++ b/libs.linux @@ -19,7 +19,7 @@ DEBUG = 1 # common CPPFLAGS to all components, further CPPFLAGS customization in # directory specific makefile.gtk files. -ifdef DEBUG +ifeq ($(DEBUG), 1) CPPFLAGS = -Wall -g `wx-config --debug --cxxflags` -fno-strict-aliasing LDFLAGS = -g #-v else @@ -100,7 +100,7 @@ WXSYSLIB_WITH_GL= $(WXPATH)/$(PREFIX_WX_LIBS)-$(LIBVERSION).a \ -L/usr/lib $(PYLIBS) else -ifdef DEBUG +ifeq ($(DEBUG), 1) # debug wxWidgets WXSYSLIB= `wx-config --debug --libs std` WXSYSLIB_WITH_GL= `wx-config --debug --libs std,gl`