From 308a0319d86e398a4bcf0f076cc77fd90a8c0ca1 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Thu, 17 Oct 1996 21:47:12 +0000 Subject: Add pedantic warnings, as well as -m486 if we are only for the 486 --- sys/arch/i386/conf/Makefile.i386 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'sys') 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 -- cgit v1.2.3