diff options
author | Samuel Bronson <naesten@gmail.com> | 2013-05-24 16:25:05 -0400 |
---|---|---|
committer | Samuel Bronson <naesten@gmail.com> | 2013-05-24 16:25:05 -0400 |
commit | 097fc10deed31e0fb79ab467885264b653519cb3 (patch) | |
tree | 2a050d5ed010ff1cc50a4bd9f6d46dca5c9b4ec4 /crawl-ref/source/Makefile | |
parent | d40f694ba2df5102e3601505dd7bc33aa6822728 (diff) | |
download | crawl-ref-097fc10deed31e0fb79ab467885264b653519cb3.tar.gz crawl-ref-097fc10deed31e0fb79ab467885264b653519cb3.zip |
Don't rebuild everything when PCH is rebuilt due to external code.
Warning: PCH users who don't use ccache may need to "make clean".
Diffstat (limited to 'crawl-ref/source/Makefile')
-rw-r--r-- | crawl-ref/source/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile index a95a055c2e..883b653f47 100644 --- a/crawl-ref/source/Makefile +++ b/crawl-ref/source/Makefile @@ -1397,7 +1397,10 @@ doxygen-all: # ifndef NO_INLINE_DEPGEN # See info node: (gcc) Preprocessor Options -INLINE_DEPGEN_CFLAGS = -MMD +INLINE_DEPGEN_CFLAGS += -MMD +ifndef PCH +INLINE_DEPGEN_CFLAGS += -fpch-deps +endif endif $(DEPS): %.d: %.cc @@ -1417,7 +1420,7 @@ endif # Plain old compilation # -$(OBJECTS:%.o=%.cc): $(CC_DEP) $(CONTRIB_LIBS) +$(OBJECTS:%.o=%.cc): $(CONTRIB_LIBS) | $(CC_DEP) $(UTIL)%.o: ALL_CFLAGS=$(YACC_CFLAGS) |