X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mappings.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=591e7e14634b2f6b6fe6c1ac8c5a110a97ccb6c7;hp=983d12f68e647ec9dd5c1e40d8f08087713f051f;hb=6041286f817ecd687b5e4186366a0953fd31ee85;hpb=adbe975037016d33708408f334a56f72bf5ee6e2 diff --git a/Makefile b/Makefile index 983d12f..591e7e1 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,10 @@ ######################################################################### 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