diff options
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 3fbf4a866..6a08fcdab 100644 --- a/Makefile.custom +++ b/Makefile.custom | |||
@@ -110,8 +110,20 @@ docs/busybox.net/BusyBox.html: docs/busybox.pod | |||
110 | syn_tgt = $(wildcard $(patsubst %,%/*.c,$(busybox-alldirs))) | 110 | syn_tgt = $(wildcard $(patsubst %,%/*.c,$(busybox-alldirs))) |
111 | syn = $(patsubst %.c, %.syn, $(syn_tgt)) | 111 | syn = $(patsubst %.c, %.syn, $(syn_tgt)) |
112 | 112 | ||
113 | comma:= , | ||
114 | brace_open:= ( | ||
115 | brace_close:= ) | ||
116 | |||
117 | SYN_CPPFLAGS := $(strip $(CPPFLAGS) $(EXTRA_CPPFLAGS)) | ||
118 | SYN_CPPFLAGS := $(subst $(brace_open),\$(brace_open),$(SYN_CPPFLAGS)) | ||
119 | SYN_CPPFLAGS := $(subst $(brace_close),\$(brace_close),$(SYN_CPPFLAGS)) | ||
120 | #SYN_CPPFLAGS := $(subst ",\",$(SYN_CPPFLAGS)) | ||
121 | #") | ||
122 | #SYN_CPPFLAGS := [$(patsubst %,'%'$(comma),$(SYN_CPPFLAGS))''] | ||
123 | |||
113 | %.syn: %.c | 124 | %.syn: %.c |
114 | 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 $@ $< | 125 | $(warning fla='$(SYN_CPPFLAGS)') |
126 | synopsis -p C -l Comments.SSDFilter,Comments.Previous -Wp,preprocess=True,cppflags="'$(SYN_CPPFLAGS)'" -o $@ $< | ||
115 | 127 | ||
116 | .PHONY: html | 128 | .PHONY: html |
117 | html: $(syn) | 129 | html: $(syn) |