diff options
Diffstat (limited to 'win32/makefile')
| -rw-r--r-- | win32/makefile | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/win32/makefile b/win32/makefile index c52aa2ffb..eb4e37327 100644 --- a/win32/makefile +++ b/win32/makefile @@ -18,7 +18,13 @@ LDFLAGS = -lkernel32 -luser32 -lgdi32 -limm32 -lole32 -luuid  # Add -MMD to get dependencies  #CXXFLAGS = -g -pg -pedantic -Os -fno-exceptions -fvtable-thunks -fno-rtti  INCLUDEDIRS=-I ../include -I ../src -CXXFLAGS = -W -Wall -pedantic $(INCLUDEDIRS) -Os -fno-exceptions -fvtable-thunks -fno-rtti  +CXXBASEFLAGS = -W -Wall -pedantic $(INCLUDEDIRS) -Os -fno-exceptions -fvtable-thunks -fno-rtti  + +ifdef DEBUG +CXXFLAGS=-DDEBUG $(CXXBASEFLAGS) +else +CXXFLAGS=-DNDEBUG $(CXXBASEFLAGS) +endif  .cxx.o:  	$(CC) $(CXXFLAGS) -c $< -o $@  | 
