From 3ea091712e42efafe5d45d479ed8d075580d9f76 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 6 May 2019 13:07:05 -0700 Subject: [PATCH] include/ircd: Add header deps to pch targets. --- include/ircd/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/ircd/Makefile.am b/include/ircd/Makefile.am index 0481317b0..7426cc42c 100644 --- a/include/ircd/Makefile.am +++ b/include/ircd/Makefile.am @@ -47,14 +47,16 @@ LOWMEM_FLAGS= --param ggc-min-expand=1 endif endif -ircd.h.gch: +DEPS = *.h */*.h */*/*.h */*/*/*.h + +ircd.h.gch: $(DEPS) $(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -o ircd.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) ircd.h -ircd.pic.h.gch: +ircd.pic.h.gch: $(DEPS) cp ircd.h ircd.pic.h $(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -fPIC -o ircd.pic.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) -DPIC ircd.pic.h -spirit.h.gch: +spirit.h.gch: $(DEPS) $(CXX) $(CXXFLAGS) $(LOWMEM_FLAGS) $(AM_CXXFLAGS) -fPIC -o spirit.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) -DPIC -include ircd.pic.h spirit.h clean-local: