aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/makefile
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-09-05 02:14:21 +0000
committernyamatongwe <unknown>2000-09-05 02:14:21 +0000
commit6d20c54ff42983715be4db0a9af4c03d21dd3757 (patch)
tree689b11a295d0615a3e4e64906ec50e69e8d7ce6f /win32/makefile
parent90a488667404e38f26f0e555dd7f3416842ad624 (diff)
downloadscintilla-mirror-6d20c54ff42983715be4db0a9af4c03d21dd3757.tar.gz
Support for DEBUG or NDEBUG defines to make assert work.
Diffstat (limited to 'win32/makefile')
-rw-r--r--win32/makefile8
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 $@