#########################################################################
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
Makefile.depend: *.h *.cc Makefile
$(CC) -M *.cc > Makefile.depend
+clean:
+ rm -f *.o main
+
-include Makefile.depend