svn commit: trunk/busybox: arch/i386
aldot at busybox.net
aldot at busybox.net
Wed Dec 6 21:52:00 UTC 2006
Author: aldot
Date: 2006-12-06 13:51:59 -0800 (Wed, 06 Dec 2006)
New Revision: 16792
Log:
- better distinction between CFLAGS and CPPFLAGS.
Modified:
trunk/busybox/Makefile.custom
trunk/busybox/Makefile.flags
trunk/busybox/arch/i386/Makefile
Changeset:
Modified: trunk/busybox/Makefile.custom
===================================================================
--- trunk/busybox/Makefile.custom 2006-12-06 21:46:56 UTC (rev 16791)
+++ trunk/busybox/Makefile.custom 2006-12-06 21:51:59 UTC (rev 16792)
@@ -110,8 +110,20 @@
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)
Modified: trunk/busybox/Makefile.flags
===================================================================
--- trunk/busybox/Makefile.flags 2006-12-06 21:46:56 UTC (rev 16791)
+++ trunk/busybox/Makefile.flags 2006-12-06 21:51:59 UTC (rev 16792)
@@ -13,7 +13,9 @@
-include include/autoconf.h \
-D_GNU_SOURCE -DNDEBUG \
$(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \
- -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP \
+ -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP
+
+CFLAGS += \
-Wall -Wstrict-prototypes -Wshadow -Werror -Wundef \
-funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \
-Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
Modified: trunk/busybox/arch/i386/Makefile
===================================================================
--- trunk/busybox/arch/i386/Makefile 2006-12-06 21:46:56 UTC (rev 16791)
+++ trunk/busybox/arch/i386/Makefile 2006-12-06 21:51:59 UTC (rev 16792)
@@ -2,4 +2,4 @@
# Build system
# ==========================================================================
-CPPFLAGS += -march=i386 -mpreferred-stack-boundary=2
+CFLAGS += -march=i386 -mpreferred-stack-boundary=2
More information about the busybox-cvs
mailing list