diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-06 21:51:59 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-06 21:51:59 +0000 |
commit | 013e9de85f9e66610408d04997f8aee6cc8f4193 (patch) | |
tree | 52e0a138c5126a68a14405ab3404c5d42071f6db | |
parent | 182628ecbd9a2b4679f43efbf2bd782ac485cbf1 (diff) | |
download | busybox-w32-013e9de85f9e66610408d04997f8aee6cc8f4193.tar.gz busybox-w32-013e9de85f9e66610408d04997f8aee6cc8f4193.tar.bz2 busybox-w32-013e9de85f9e66610408d04997f8aee6cc8f4193.zip |
- better distinction between CFLAGS and CPPFLAGS.
git-svn-id: svn://busybox.net/trunk/busybox@16792 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | Makefile.custom | 14 | ||||
-rw-r--r-- | Makefile.flags | 4 | ||||
-rw-r--r-- | arch/i386/Makefile | 2 |
3 files changed, 17 insertions, 3 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) |
diff --git a/Makefile.flags b/Makefile.flags index 0c680f904..bb5cef0d9 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -13,7 +13,9 @@ CPPFLAGS += \ | |||
13 | -include include/autoconf.h \ | 13 | -include include/autoconf.h \ |
14 | -D_GNU_SOURCE -DNDEBUG \ | 14 | -D_GNU_SOURCE -DNDEBUG \ |
15 | $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \ | 15 | $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \ |
16 | -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP \ | 16 | -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP |
17 | |||
18 | CFLAGS += \ | ||
17 | -Wall -Wstrict-prototypes -Wshadow -Werror -Wundef \ | 19 | -Wall -Wstrict-prototypes -Wshadow -Werror -Wundef \ |
18 | -funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \ | 20 | -funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \ |
19 | -Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 \ | 21 | -Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 \ |
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index 0a235921c..595868ec5 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -2,4 +2,4 @@ | |||
2 | # Build system | 2 | # Build system |
3 | # ========================================================================== | 3 | # ========================================================================== |
4 | 4 | ||
5 | CPPFLAGS += -march=i386 -mpreferred-stack-boundary=2 | 5 | CFLAGS += -march=i386 -mpreferred-stack-boundary=2 |