[make] put all of the global and local build switches in config.h files

-now if you change any interesting build flags, the appropriate sources
will be rebuilt
This commit is contained in:
Travis Geiselbrecht
2012-09-23 18:48:11 -07:00
parent 6830dfe447
commit 3635b5d314
3 changed files with 22 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ MKDIR = if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi
# prepends the BUILD_DIR var to each item in the list
TOBUILDDIR = $(addprefix $(BUILDDIR)/,$(1))
COMMA := ,
SPACE :=
SPACE +=
# generate a header file at $1 with an expanded variable in $2
define MAKECONFIGHEADER
@$(MKDIR)