summaryrefslogtreecommitdiff
path: root/sys/arch/i386/conf/Makefile.i386
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-17 21:47:12 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-17 21:47:12 +0000
commit308a0319d86e398a4bcf0f076cc77fd90a8c0ca1 (patch)
tree2f4ac6d2ddd23350fd2271f8d930f285e1736477 /sys/arch/i386/conf/Makefile.i386
parent4d4d2300d51524b8c146857bfe73b0f6f14f13d2 (diff)
Add pedantic warnings, as well as -m486 if we are only for the 486
Diffstat (limited to 'sys/arch/i386/conf/Makefile.i386')
-rw-r--r--sys/arch/i386/conf/Makefile.i38614
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386
index 4f57bb0d6f1..8ebfdc2686a 100644
--- a/sys/arch/i386/conf/Makefile.i386
+++ b/sys/arch/i386/conf/Makefile.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.i386,v 1.14 1996/06/24 17:07:34 deraadt Exp $
+# $OpenBSD: Makefile.i386,v 1.15 1996/10/17 21:47:11 niklas Exp $
# $NetBSD: Makefile.i386,v 1.67 1996/05/11 16:12:11 mycroft Exp $
# Makefile for OpenBSD
@@ -35,7 +35,17 @@ I386= ../..
INCLUDES= -I. -I$S/arch -I$S
CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Di386
-CFLAGS= ${DEBUG} -O2 -Werror
+
+CDIAGFLAGS= -Werror -Wall -Wstrict-prototypes -Wno-uninitialized \
+ -Wno-format
+
+.if ${IDENT:M-D*_CPU} == ${IDENT:M-DI486_CPU}
+CMACHFLAGS= -m486
+.else
+CMACHFLAGS=
+.endif
+
+CFLAGS= ${DEBUG} -O2 ${CDIAGFLAGS} ${CMACHFLAGS} ${COPTS}
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -z -Ttext F8100000 -e start