Make the precompiled header depend on the .h file

This commit is contained in:
Thomas Goyne 2012-12-05 18:46:25 -08:00
parent d5aae26d83
commit f3122aca30

View file

@ -151,6 +151,7 @@ ifeq (yes, $(PRECOMPILED_HEADER))
CXXFLAGS_GNU_MAKE_SUCKS := $(CXXFLAGS) CXXFLAGS_GNU_MAKE_SUCKS := $(CXXFLAGS)
$(OBJ): | $(PRECOMPILED_HEADER_NAME).gch $(OBJ): | $(PRECOMPILED_HEADER_NAME).gch
$(PRECOMPILED_HEADER_NAME).gch: CXXFLAGS = $(CXXFLAGS_GNU_MAKE_SUCKS) $(PRECOMPILED_HEADER_NAME).gch: CXXFLAGS = $(CXXFLAGS_GNU_MAKE_SUCKS)
$(PRECOMPILED_HEADER_NAME).gch: $(PRECOMPILED_HEADER_NAME)
endif endif
endif endif