From c52c2a24e3fb7a44cddcef94e6521316c5e609ca Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 16 Jan 2003 07:15:18 +0000 Subject: Update build rules a bit. fix quoting problems. Update default x86 compiler optimization to not force building i386 opcodes. --- Rules.mak | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Rules.mak') 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 -- cgit v1.2.3