From 6d20c54ff42983715be4db0a9af4c03d21dd3757 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 5 Sep 2000 02:14:21 +0000 Subject: Support for DEBUG or NDEBUG defines to make assert work. --- win32/makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'win32/makefile') 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 $@ -- cgit v1.2.3