git » fp-git.git » commit e50e96e

agrego -Wall -ansi -pedantic

author dessaya
2004-06-26 01:06:01 UTC
committer dessaya
2004-06-26 01:06:01 UTC
parent df7a17758d13d759ada7b3a6c7e79bdc82687368

agrego -Wall -ansi -pedantic

FP/src/Makefile +4 -2

diff --git a/FP/src/Makefile b/FP/src/Makefile
index 22a547b..a7149f5 100644
--- a/FP/src/Makefile
+++ b/FP/src/Makefile
@@ -18,9 +18,11 @@ endif
 #Compiler options
 INCLUDE = -Iinclude/
 DEFINES = -DOS=\"$(OS)\" $(LINUX) 
-OPTIONS = $(INCLUDE) $(DEFINES)
+OPTIONS = $(INCLUDE) $(DEFINES) -g -Wall -ansi -pedantic 
+# -O2 for release
 
 OBJFILES = main.o kernel.o resources.o dat.o disk.o compress.o output.o maps.o config.o
+LIBS     = -lSDL -lpthread
 
 EXEFILE  = bin/freeprince
 
@@ -29,7 +31,7 @@ EXEFILE  = bin/freeprince
 $(EXEFILE): $(OBJFILES)
 	$(INFO) Linking files...
 	$(MAKEDIR) bin
-	$(CC) $(OPTIONS) -o $(EXEFILE) $(OBJFILES) -O2
+	$(CC) $(OPTIONS) -o $(EXEFILE) $(OBJFILES) $(LIBS)
 	$(INFO) Program successfully compiled
 	$(INFO)
 	$(INFO) Please read readme.txt for syntax information