summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-16 07:15:18 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-16 07:15:18 +0000
commitc52c2a24e3fb7a44cddcef94e6521316c5e609ca (patch)
tree920bd112eb05301f254829aeb20265ff76034a60 /Rules.mak
parent8fb868cee4d58c06175765bb446a815f8b52d104 (diff)
Update build rules a bit. fix quoting problems. Update default
x86 compiler optimization to not force building i386 opcodes.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak8
1 files changed, 5 insertions, 3 deletions
diff --git a/Rules.mak b/Rules.mak
index a44bbc5fd..5e3d3b751 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -166,10 +166,12 @@ endif
# Add a bunch of extra pedantic annoyingly strict checks
-WARNINGS+=-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
+XWARNINGS=-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
+CPU_CFLAGS=$(subst ",, $(strip $(CPU_CFLAGS-y)))
# Some nice CFLAGS to work with
-CFLAGS:=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) \
- -D_LIBC $(CPU_CFLAGS-y) $(subst ",, $(strip $(ARCH_CFLAGS))) -I$(TOPDIR)include -I.
+CFLAGS:=$(subst ",, $(strip $(WARNINGS))) $(XWARNINGS) $(OPTIMIZATION) \
+ -fno-builtin -nostdinc $(CPUFLAGS) -D_LIBC $(CPU_CFLAGS) \
+ $(subst ",, $(strip $(ARCH_CFLAGS))) -I$(TOPDIR)include -I.
ifeq ($(DODEBUG),y)
CFLAGS += -g