diff options
author | nyamatongwe <devnull@localhost> | 2000-09-06 12:05:05 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-09-06 12:05:05 +0000 |
commit | 5a7e382fdff8820abdc53d04b19933d4bce3ba94 (patch) | |
tree | 219017c45e51270e686112f6789ed0e79a3ed443 | |
parent | cf3e13e6b42512b309d78b7d45425aa5425bb10b (diff) | |
download | scintilla-mirror-5a7e382fdff8820abdc53d04b19933d4bce3ba94.tar.gz |
Define either DEBUG or NDEBUG to compiler if DEBUG defined to make.
-rw-r--r-- | gtk/makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/makefile b/gtk/makefile index d1f11ff55..6bf1b8ec7 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -15,7 +15,13 @@ vpath %.cxx ../src #CXXFLAGS= -g -DGTK -DSCI_LEXER -Wwrite-strings INCLUDEDIRS=-I ../include -I ../src -CXXFLAGS= -DGTK -DSCI_LEXER -W -Wall +CXXBASEFLAGS= -DGTK -DSCI_LEXER -W -Wall + +ifdef DEBUG +CXXFLAGS=-DDEBUG $(CXXBASEFLAGS) +else +CXXFLAGS=-DNDEBUG $(CXXBASEFLAGS) +endif .cxx.o: $(CC) `gtk-config --cflags` $(INCLUDEDIRS) $(CXXFLAGS) -c $< -o $@ |