First, in the first makefile change:
to:Code:precompiled.o: precompiled.h
and in the 2nd makefile change:Code:precompiled.h.gch: precompiled.h
to:Code:CPPFLAGS += -O3 -Wall -g -DFOO=BAR
Next, why are you #including .cpp files?Code:CPPFLAGS += -O3 -Wall -g -DFOO=BAR -include precompiled.h