aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-06 21:51:59 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-06 21:51:59 +0000
commitfeea1b972ce25ceb4569e5089a7c0319e5a7d447 (patch)
tree52e0a138c5126a68a14405ab3404c5d42071f6db
parentbc95f579322c8e2286c50443f9ce8c88922c7da5 (diff)
downloadbusybox-w32-feea1b972ce25ceb4569e5089a7c0319e5a7d447.tar.gz
busybox-w32-feea1b972ce25ceb4569e5089a7c0319e5a7d447.tar.bz2
busybox-w32-feea1b972ce25ceb4569e5089a7c0319e5a7d447.zip
- better distinction between CFLAGS and CPPFLAGS.
-rw-r--r--Makefile.custom14
-rw-r--r--Makefile.flags4
-rw-r--r--arch/i386/Makefile2
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
110syn_tgt = $(wildcard $(patsubst %,%/*.c,$(busybox-alldirs))) 110syn_tgt = $(wildcard $(patsubst %,%/*.c,$(busybox-alldirs)))
111syn = $(patsubst %.c, %.syn, $(syn_tgt)) 111syn = $(patsubst %.c, %.syn, $(syn_tgt))
112 112
113comma:= ,
114brace_open:= (
115brace_close:= )
116
117SYN_CPPFLAGS := $(strip $(CPPFLAGS) $(EXTRA_CPPFLAGS))
118SYN_CPPFLAGS := $(subst $(brace_open),\$(brace_open),$(SYN_CPPFLAGS))
119SYN_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
117html: $(syn) 129html: $(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
18CFLAGS += \
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
5CPPFLAGS += -march=i386 -mpreferred-stack-boundary=2 5CFLAGS += -march=i386 -mpreferred-stack-boundary=2