diff options
-rw-r--r-- | src/GNUmakefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile index e410ca0..3569479 100644 --- a/src/GNUmakefile +++ b/src/GNUmakefile @@ -18,7 +18,7 @@ # # ------------------------------------------------------------------------- # -# $Id: GNUmakefile,v 1.8 2005-04-11 00:03:53 ianc Exp $ +# $Id: GNUmakefile,v 1.9 2005-04-11 00:13:17 ianc Exp $ # @@ -38,7 +38,7 @@ CREATECONF = 1 # Uncomment this if you want a debug build. Note that debug goes to a file # called debug.out in the pwd. # -DEBUG = -g -DW32D_DEBUG +#DEBUG = -g -DW32D_DEBUG # # **************************************** END OF CONFIGURATION @@ -47,6 +47,13 @@ DEBUG = -g -DW32D_DEBUG # Do not change past here. # Well, unless something doesn't work of course... # + +ifndef DEBUG +OPT = -O +else +OPT = +endif + TARGET = libw32dlib.a SOURCES = autocheck.cpp \ @@ -66,7 +73,7 @@ HEADERS = w32dlib/*.h OBJECTS = $(SOURCES:.cpp=.o) -FLAGS = -I. -Wall $(DEBUG) +FLAGS = -I. -Wall $(OPT) $(DEBUG) DEPEND = depend.mak |