Fixed the makefile - the precompiled header additions I previously made wasn't quite syntactically correct, causing unnecessary rebuilds of untouched object files. Now only touched cpps will be rebuilt as expected.

This commit is contained in:
wrenczes@gmail.com
2010-11-13 08:53:22 +00:00
parent 2c1e18050c
commit fe9c43bc81

View File

@@ -89,11 +89,15 @@ clean:
endif
define compile
$(CXX) -c $(CXXFLAGS) $< -o $@
endef
PrecompiledHeader.h.gch: ../../projects/mtg/include/PrecompiledHeader.h
$(CXX) -c $(CXXFLAGS) $<
$(compile)
$(OBJS): objs/%.o: src/%.cpp PrecompiledHeader.h.gch
$(CXX) -c $(CXXFLAGS) $< -o $@
$(compile)
$(DEPS): deps/%.d: src/%.cpp
@$(CXX) -MM $(CXXFLAGS) -MQ $(patsubst deps/%.d, objs/%.o, $(@)) -MQ $@ $< > $@