Hi,
You could modify the makefile to build/use precompiled headers manually. Add the following lines to it before the FileSpecificTemplates line:
PRECOMPILED_HEADER_FILE := stdafx.h.gch
stdafx.h.gch: $(all_make_files) stdafx.h
$(CXX) $(CXXFLAGS) -c stdafx.h -o stdafx.h.gch -MD -MF $(BINARYDIR)/stdafx.dep
-include $(BINARYDIR)/stdafx.dep
Then modify FileSpecificTemplates this way:
$(BINARYDIR)/%.o : %.cpp $(all_make_files) $(PRECOMPILED_HEADER_FILE) |$(BINARYDIR)
$(CXX) $(CXXFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)
Note that this solution will have one major disadvantage: The precompiled header file will be shared between debug/release builds, so you will need to delete it before building the other configuration. You can fix it by creating the gch file inside $(BINARYDIR), but then you will need to add it to the beginning of the include directory list and ensure it is always there before the '.' directory.