diff options
| author | nyamatongwe <devnull@localhost> | 2000-09-05 02:14:21 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-09-05 02:14:21 +0000 |
| commit | 6f93953d62a1f7a4b3c28b15705ec91c42d554b5 (patch) | |
| tree | 689b11a295d0615a3e4e64906ec50e69e8d7ce6f /win32/makefile | |
| parent | cda6b55ff6a18e5ad94efc5ae9ee601a1e06bde8 (diff) | |
| download | scintilla-mirror-6f93953d62a1f7a4b3c28b15705ec91c42d554b5.tar.gz | |
Support for DEBUG or NDEBUG defines to make assert work.
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 $@ |
