Added the -pedantic compilation option, removed a ';'.
[mappings.git] / Makefile
index 983d12f..591e7e1 100644 (file)
--- a/Makefile
+++ b/Makefile
 #########################################################################
 
 ifeq ($(DEBUG),yes)
- CXXFLAGS = -Wall -g
+ CXXFLAGS = -Wall -pedantic -O3 -g
 else
  # Optimized compilation
- CXXFLAGS = -Wall -ffast-math -fcaller-saves -finline-functions -funroll-all-loops -O3
+ CXXFLAGS = -Wall -pedantic -O3
 endif
 
 all: main
@@ -31,4 +31,7 @@ main: main.cc mappings.o
 Makefile.depend: *.h *.cc Makefile
        $(CC) -M *.cc > Makefile.depend
 
+clean:
+       rm -f *.o main
+
 -include Makefile.depend