diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-12-14 08:51:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-12-14 08:51:22 +0000 |
commit | fa24605dbc4c61a6d880d52d1469a55c8a002ac3 (patch) | |
tree | fa1e1a5c7df0ce6efb9e8e2dbe82293c53c58d00 /sys/arch | |
parent | c22379bc91ec3e19a4d69b7edb4d305129f0fd15 (diff) |
Sync compilation flags definition accross m68k-based arches.
mvme68k still lacks some -Wfoo flags, until it is warnings clean.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amiga/conf/Makefile.amiga | 6 | ||||
-rw-r--r-- | sys/arch/hp300/conf/Makefile.hp300 | 15 | ||||
-rw-r--r-- | sys/arch/mac68k/conf/Makefile.mac68k | 12 | ||||
-rw-r--r-- | sys/arch/mvme68k/conf/Makefile.mvme68k | 7 | ||||
-rw-r--r-- | sys/arch/sun3/conf/Makefile.sun3 | 12 |
5 files changed, 31 insertions, 21 deletions
diff --git a/sys/arch/amiga/conf/Makefile.amiga b/sys/arch/amiga/conf/Makefile.amiga index 1ed1067283a..4a42ff8993f 100644 --- a/sys/arch/amiga/conf/Makefile.amiga +++ b/sys/arch/amiga/conf/Makefile.amiga @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.amiga,v 1.28 2001/12/13 22:00:50 miod Exp $ +# $OpenBSD: Makefile.amiga,v 1.29 2001/12/14 08:51:17 miod Exp $ # $NetBSD: Makefile.amiga,v 1.60 1997/07/23 10:19:42 is Exp $ # Makefile for OpenBSD @@ -39,8 +39,8 @@ AMIGA= $S/arch/amiga M68K= $S/arch/m68k INCLUDES= -I. -I$S/arch -I$S -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dmc68020 -Damiga - +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ + -Dmc68020 -Damiga CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300 index 820688bd139..cc79484bbed 100644 --- a/sys/arch/hp300/conf/Makefile.hp300 +++ b/sys/arch/hp300/conf/Makefile.hp300 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hp300,v 1.24 2001/11/25 23:23:45 miod Exp $ +# $OpenBSD: Makefile.hp300,v 1.25 2001/12/14 08:51:19 miod Exp $ # $NetBSD: Makefile.hp300,v 1.54 1997/04/01 23:16:41 scottr Exp $ # Makefile for OpenBSD @@ -28,7 +28,8 @@ CC?= cc LD?= ld MKDEP?= mkdep STRIP?= strip -COPTS?= -O2 +TOUCH?= touch -f -c +COPTS?= -O2 # source tree is located via $S relative to the compilation directory .ifndef S @@ -40,14 +41,16 @@ M68K= $S/arch/m68k INCLUDES= -I. -I$S/arch -I$S -nostdinc CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ -Dmc68020 -Dhp300 -CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wno-uninitialized \ - -Wno-format -Wno-main -CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -msoft-float +CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ + -Wno-uninitialized -Wno-format -Wno-main +CMACHFLAGS= -msoft-float + +CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${CMACHFLAGS} AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE LINKFLAGS= -n -Ttext 0 -e start STRIPFLAGS= -d -HOSTCC= ${CC} +HOSTCC?= ${CC} HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//} HOSTED_CFLAGS= ${CFLAGS} diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k index ff8a42b2ca8..f4a213d22e5 100644 --- a/sys/arch/mac68k/conf/Makefile.mac68k +++ b/sys/arch/mac68k/conf/Makefile.mac68k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mac68k,v 1.22 2001/08/30 22:10:18 miod Exp $ +# $OpenBSD: Makefile.mac68k,v 1.23 2001/12/14 08:51:21 miod Exp $ # $NetBSD: Makefile.mac68k,v 1.53 1997/04/15 06:11:38 scottr Exp $ # Makefile for OpenBSD @@ -28,8 +28,8 @@ CC?= cc LD?= ld MKDEP?= mkdep STRIP?= strip -d -COPTS?= -O2 TOUCH?= touch -f -c +COPTS?= -O2 # source tree is located via $S relative to the compilation directory .ifndef S @@ -39,12 +39,16 @@ MAC68K= $S/arch/mac68k M68K= $S/arch/m68k INCLUDES= -I. -I$S/arch -I$S -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Dmc68020 -Dmac68k +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ + -Dmc68020 -Dmac68k CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main -CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -msoft-float +CMACHFLAGS= -msoft-float + +CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${CMACHFLAGS} AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE LINKFLAGS= -n -Ttext 0 -e start +STRIPFLAGS= -d HOSTCC?= ${CC} HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//} diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k index a004368af50..0656fe0fed1 100644 --- a/sys/arch/mvme68k/conf/Makefile.mvme68k +++ b/sys/arch/mvme68k/conf/Makefile.mvme68k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mvme68k,v 1.12 2001/08/30 22:10:18 miod Exp $ +# $OpenBSD: Makefile.mvme68k,v 1.13 2001/12/14 08:51:21 miod Exp $ # This makefile is constructed from a machine description: # config machineid @@ -36,7 +36,8 @@ MVME68K=$S/arch/mvme68k M68K= $S/arch/m68k INCLUDES= -I. -I$S/arch -I$S -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dmvme68k +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ + -Dmc68020 -Dmvme68k CWARNFLAGS= -Werror .if empty(IDENT:M-DM68060) @@ -46,7 +47,7 @@ CMACHFLAGS= -m68060 -Wa,-m68030 .endif CMACHFLAGS+= -msoft-float -CFLAGS= ${DEBUG} ${CWARNFLAGS} ${COPTS} ${CMACHFLAGS} +CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${CMACHFLAGS} AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE LINKFLAGS= -Ttext 0x10000 -z -e start STRIPFLAGS= -d diff --git a/sys/arch/sun3/conf/Makefile.sun3 b/sys/arch/sun3/conf/Makefile.sun3 index eed6b12e231..d0ce9da6e0f 100644 --- a/sys/arch/sun3/conf/Makefile.sun3 +++ b/sys/arch/sun3/conf/Makefile.sun3 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sun3,v 1.27 2001/08/30 22:10:18 miod Exp $ +# $OpenBSD: Makefile.sun3,v 1.28 2001/12/14 08:51:21 miod Exp $ # $NetBSD: Makefile.sun3,v 1.51 1996/09/09 21:07:08 mycroft Exp $ # Makefile for OpenBSD @@ -24,10 +24,12 @@ .include <bsd.own.mk> +AS?= as CC?= cc +CPP?= cpp LD?= ld -MKDEP?= mkdep STRIP?= strip +COPTS?= -O2 # source tree is located via $S relative to the compilation directory .ifndef S @@ -37,13 +39,13 @@ SUN3= $S/arch/sun3 M68K= $S/arch/m68k INCLUDES= -I. -I$S/arch -I$S -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dmc68020 -Dsun3 +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ + -Dmc68020 -Dsun3 CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main CMACHFLAGS= -m68020 -msoft-float -COPTS?= -O2 -CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} +CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${CMACHFLAGS} AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE ${CMACHFLAGS} LINKFLAGS= -N -Ttext 0E004000 -e start STRIPFLAGS= -d |