diff options
author | Bernhard Reutner-Fischer | 2006-12-06 21:51:59 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-12-06 21:51:59 +0000 |
commit | feea1b972ce25ceb4569e5089a7c0319e5a7d447 (patch) | |
tree | 52e0a138c5126a68a14405ab3404c5d42071f6db /Makefile.custom | |
parent | bc95f579322c8e2286c50443f9ce8c88922c7da5 (diff) | |
download | busybox-feea1b972ce25ceb4569e5089a7c0319e5a7d447.zip busybox-feea1b972ce25ceb4569e5089a7c0319e5a7d447.tar.gz |
- better distinction between CFLAGS and CPPFLAGS.
Diffstat (limited to 'Makefile.custom')
-rw-r--r-- | Makefile.custom | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.custom b/Makefile.custom index 3fbf4a8..6a08fcd 100644 --- a/Makefile.custom +++ b/Makefile.custom @@ -110,8 +110,20 @@ docs/busybox.net/BusyBox.html: docs/busybox.pod syn_tgt = $(wildcard $(patsubst %,%/*.c,$(busybox-alldirs))) syn = $(patsubst %.c, %.syn, $(syn_tgt)) +comma:= , +brace_open:= ( +brace_close:= ) + +SYN_CPPFLAGS := $(strip $(CPPFLAGS) $(EXTRA_CPPFLAGS)) +SYN_CPPFLAGS := $(subst $(brace_open),\$(brace_open),$(SYN_CPPFLAGS)) +SYN_CPPFLAGS := $(subst $(brace_close),\$(brace_close),$(SYN_CPPFLAGS)) +#SYN_CPPFLAGS := $(subst ",\",$(SYN_CPPFLAGS)) +#") +#SYN_CPPFLAGS := [$(patsubst %,'%'$(comma),$(SYN_CPPFLAGS))''] + %.syn: %.c - synopsis --verbose --debug -p C -l Comments.SSDFilter,Comments.Previous $(INCS) -Wp,verbose=True,debug=True,preprocess=True,cppflags="'$(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $(PROG_CFLAGS) $(PROG_LDFLAGS) $(CFLAGS_COMBINE) $(APPLETS_DEFINE) $(BUSYBOX_DEFINE)'" -o $@ $< + $(warning fla='$(SYN_CPPFLAGS)') + synopsis -p C -l Comments.SSDFilter,Comments.Previous -Wp,preprocess=True,cppflags="'$(SYN_CPPFLAGS)'" -o $@ $< .PHONY: html html: $(syn) |