From 097fc10deed31e0fb79ab467885264b653519cb3 Mon Sep 17 00:00:00 2001 From: Samuel Bronson Date: Fri, 24 May 2013 16:25:05 -0400 Subject: 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". --- crawl-ref/source/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/Makefile') 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) -- cgit v1.2.3-54-g00ecf