summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-02 06:16:30 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-02 06:16:30 +0000
commitaa966844c295fdb9321701538f05f4debb539284 (patch)
tree49e272e82d5096a7c700a50b2103f40612968d66 /Rules.mak
parent64ead491bcbbf3e8fe04f3aace8f55101f094248 (diff)
Add a bunch of extra pedantic annoyingly strict checks
-Erik
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak11
1 files changed, 9 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index 697f80b77..e35f9f708 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -60,10 +60,15 @@ TARGET_ARCH:=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
}
endif
+# Ensure consistent filename sort order
+LC_COLLATE := C
+export LC_COLLATE
+
+ARFLAGS:=r
+
# Some nice architecture specific optimizations
ifndef OPTIMIZATION
-
# use '-Os' optimization if available, else use -O2, allow Config to override
OPTIMIZATION:= ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
then echo "-Os"; else echo "-O2" ; fi}
@@ -82,7 +87,9 @@ ifeq ($(strip $(TARGET_ARCH)),i386)
endif
endif
-ARFLAGS:=r
+# Add a bunch of extra pedantic annoyingly strict checks
+WARNINGS+=-Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
+
CFLAGS:=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) \
-I$(TOPDIR)include -iwithprefix include -I. -D_LIBC $(ARCH_CFLAGS)