X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Frules.mk;fp=src%2Frules.mk;h=cbf2776361555ee78e6d48162d83b12f3956dc6d;hp=16ebea65b22660307107188bfc07b07751d77eae;hb=44b3014bce798789e795242d1556cb7449e6386a;hpb=4f6e4488a55f7e3ba3f7485d78177f793c0eab9a diff --git a/src/rules.mk b/src/rules.mk index 16ebea6..cbf2776 100644 --- a/src/rules.mk +++ b/src/rules.mk @@ -13,17 +13,24 @@ endif ifeq (true,$(includeConfig)) objects += $b/config.o # Also compile in the configuration. +exec += $b/config.gz exec += $b/config.c # Make config.c a build target. -$b/config.c: config.mk +$b/config.gz: config.mk + $(Q)$(gzip) +$b/config.c: $b/config.gz $(Q)$(xxd) endif -$(objects): TGT_CFLAGS := -I$d -$(objects): config.h $(this) | $b +$(objects): TGT_CFLAGS := -I$b -I$d +$(objects): config.h | $b # Make all objects depend on config.h; it's excessive, but config.h won't be # remade otherwise if dependencies are not being generated. The alternative # is to maintain an accurate list of objects with a dependency on config.h. +ifeq (true,$(pch)) +$(objects): $b/moof/precompile.hh.gch +endif + exec += $(objects) # Make the objects build targets. bindir_$b := $b/$(projectName)$(EXEEXT) # Install executable to bindir.