author | ecalot
<ecalot> 2005-01-16 22:36:55 UTC |
committer | ecalot
<ecalot> 2005-01-16 22:36:55 UTC |
parent | b8861f49da8a5ec749f77d74057d2c3966ab0a56 |
FP/src/Makefile | +8 | -2 |
diff --git a/FP/src/Makefile b/FP/src/Makefile index 2453ee7..e3c6c08 100644 --- a/FP/src/Makefile +++ b/FP/src/Makefile @@ -36,13 +36,19 @@ LIBS = $(shell sdl-config --libs) DEFINES = -DOS=\"$(OS)\" $(LINUX) #Release type +TYPE = Release # RELEASE may be: # -g -Wall -ansi -pedantic for debug # -O2 for release # LINKERRELEASE may be: # -s for release -RELEASE = -g -Wall -ansi -pedantic -LINKERRELEASE = +ifeq ($(TYPE),Debug) + RELEASE = -g -Wall -ansi -pedantic + LINKERRELEASE = +else + RELEASE = -O2 + LINKERRELEASE = -s +endif #Binary code files OBJFILES = main.o kernel.o resources.o dat.o disk.o compress.o \