diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-27 16:54:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-27 16:54:55 +0000 |
commit | 147d62531a4c937c43d846e66b15dc926fb8d776 (patch) | |
tree | 6124191f3d143a1768b049614142b5a52323324b | |
parent | 50c901d35251f10d0ef363f25fa90a6555c0083f (diff) |
Unifity CPPFLAGS= (using ${_mach}), SYSTEM_LD_TAIL= (always on one line),
and SRCS= (common files always after the \)
-rw-r--r-- | sys/arch/alpha/conf/Makefile.alpha | 8 | ||||
-rw-r--r-- | sys/arch/amd64/conf/Makefile.amd64 | 11 | ||||
-rw-r--r-- | sys/arch/aviion/conf/Makefile.aviion | 9 | ||||
-rw-r--r-- | sys/arch/beagle/conf/Makefile.beagle | 8 | ||||
-rw-r--r-- | sys/arch/hp300/conf/Makefile.hp300 | 5 | ||||
-rw-r--r-- | sys/arch/hppa/conf/Makefile.hppa | 5 | ||||
-rw-r--r-- | sys/arch/hppa64/conf/Makefile.hppa64 | 5 | ||||
-rw-r--r-- | sys/arch/landisk/conf/Makefile.landisk | 4 | ||||
-rw-r--r-- | sys/arch/loongson/conf/Makefile.loongson | 5 | ||||
-rw-r--r-- | sys/arch/luna88k/conf/Makefile.luna88k | 11 | ||||
-rw-r--r-- | sys/arch/mac68k/conf/Makefile.mac68k | 5 | ||||
-rw-r--r-- | sys/arch/macppc/conf/Makefile.macppc | 5 | ||||
-rw-r--r-- | sys/arch/mvme68k/conf/Makefile.mvme68k | 5 | ||||
-rw-r--r-- | sys/arch/mvme88k/conf/Makefile.mvme88k | 9 | ||||
-rw-r--r-- | sys/arch/mvmeppc/conf/Makefile.mvmeppc | 5 | ||||
-rw-r--r-- | sys/arch/sgi/conf/Makefile.sgi | 6 | ||||
-rw-r--r-- | sys/arch/socppc/conf/Makefile.socppc | 5 | ||||
-rw-r--r-- | sys/arch/solbourne/conf/Makefile.solbourne | 5 | ||||
-rw-r--r-- | sys/arch/sparc/conf/Makefile.sparc | 5 | ||||
-rw-r--r-- | sys/arch/sparc64/conf/Makefile.sparc64 | 3 |
20 files changed, 57 insertions, 67 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha index 3b5a1a403b1..9553c4f6f3f 100644 --- a/sys/arch/alpha/conf/Makefile.alpha +++ b/sys/arch/alpha/conf/Makefile.alpha @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.alpha,v 1.57 2010/04/27 16:50:14 jsg Exp $ +# $OpenBSD: Makefile.alpha,v 1.58 2010/04/27 16:54:52 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dalpha - +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} CDIAGFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl @@ -137,7 +136,8 @@ links: sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks sh makelinks && rm -f dontlink -SRCS= ${_machdir}/${_mach}/locore.s param.c ioconf.c ${CFILES} ${SFILES} +SRCS= ${_machdir}/${_mach}/locore.s \ + param.c ioconf.c ${CFILES} ${SFILES} depend:: .depend .depend: ${SRCS} assym.h param.c ${_machdir}/${_mach}/cpuconf.c ${DB_STRUCTINFO} ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${_machdir}/${_mach}/locore.s diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64 index 20b5f49cbe8..f4d10b31819 100644 --- a/sys/arch/amd64/conf/Makefile.amd64 +++ b/sys/arch/amd64/conf/Makefile.amd64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.amd64,v 1.32 2010/04/27 16:50:14 jsg Exp $ +# $OpenBSD: Makefile.amd64,v 1.33 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,7 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I. -I$S -I$S/arch -CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Damd64 -Dx86_64 +CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -D${_mach} -Dx86_64 CDIAGFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main -Wno-sign-compare \ -Wstack-larger-than-2047 @@ -147,9 +147,10 @@ links: sed 's,.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks sh makelinks && rm -f dontlink makelinks -AFILES= ${_machdir}/${_mach}/locore.S ${_machdir}/${_mach}/vector.S ${_machdir}/${_mach}/copy.S \ - ${_machdir}/${_mach}/spl.S -SRCS= param.c ioconf.c ${AFILES} ${CFILES} ${SFILES} +AFILES= ${_machdir}/${_mach}/locore.S ${_machdir}/${_mach}/vector.S \ + ${_machdir}/${_mach}/copy.S ${_machdir}/${_mach}/spl.S +SRCS= ${AFILES} \ + param.c ioconf.c ${CFILES} ${SFILES} depend:: .depend .depend: ${SRCS} assym.h param.c ${DB_STRUCTINFO} ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${AFILES} diff --git a/sys/arch/aviion/conf/Makefile.aviion b/sys/arch/aviion/conf/Makefile.aviion index 69e17a566dc..2de1fae1426 100644 --- a/sys/arch/aviion/conf/Makefile.aviion +++ b/sys/arch/aviion/conf/Makefile.aviion @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.aviion,v 1.19 2010/04/27 06:46:25 deraadt Exp $ +# $OpenBSD: Makefile.aviion,v 1.20 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,7 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I. -I$S -I$S/arch -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Daviion -Dm88k +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} -Dm88k CWARNFLAGS= -Wall -Werror -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main -Wstrict-prototypes \ -Wstack-larger-than-2047 -Wvariable-decl @@ -86,7 +86,7 @@ SYSTEM_DEP= Makefile ${SYSTEM_OBJ} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@; +SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ DEBUG?= .if ${DEBUG} == "-g" @@ -145,7 +145,8 @@ links: sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks sh makelinks && rm -f dontlink -SRCS= param.c ioconf.c ${CFILES} ${SFILES} +SRCS= \ + param.c ioconf.c ${CFILES} ${SFILES} depend:: .depend .depend: ${SRCS} assym.h param.c ${DB_STRUCTINFO} diff --git a/sys/arch/beagle/conf/Makefile.beagle b/sys/arch/beagle/conf/Makefile.beagle index 626091b5e95..0d18f48e975 100644 --- a/sys/arch/beagle/conf/Makefile.beagle +++ b/sys/arch/beagle/conf/Makefile.beagle @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.beagle,v 1.18 2010/04/27 16:50:14 jsg Exp $ +# $OpenBSD: Makefile.beagle,v 1.19 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -153,11 +153,11 @@ links: sed 's,.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks sh makelinks && rm -f dontlink makelinks -SRCS= ${_archdir}/arm/locore.S \ +SRCS= ${_archdir}/${_arch}/locore.S \ param.c ioconf.c ${CFILES} ${SFILES} depend:: .depend .depend: ${SRCS} assym.h param.c ${DB_STRUCTINFO} - ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${_archdir}/arm/locore.S + ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${_archdir}/${_arch}/locore.S ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} .if ${SFILES} != "" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} @@ -175,7 +175,7 @@ db_structinfo.h: $S/ddb/db_structinfo.c $S/ddb/parse_structinfo.awk ${_mach}_start.o: ${_machdir}/${_mach}/${_mach}_start.S assym.h ${NORMAL_S} -locore.o: ${_archdir}/arm/locore.S assym.h +locore.o: ${_archdir}/${_arch}/locore.S assym.h ${NORMAL_S} # The install target can be redefined by putting a diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300 index 3e355439b94..87f8e97da4e 100644 --- a/sys/arch/hp300/conf/Makefile.hp300 +++ b/sys/arch/hp300/conf/Makefile.hp300 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hp300,v 1.56 2010/04/27 06:46:25 deraadt Exp $ +# $OpenBSD: Makefile.hp300,v 1.57 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ - -Dmc68020 -Dhp300 +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} -Dmc68020 CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa index 3922d6ac89f..16158f6b6c1 100644 --- a/sys/arch/hppa/conf/Makefile.hppa +++ b/sys/arch/hppa/conf/Makefile.hppa @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hppa,v 1.47 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.hppa,v 1.48 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ - -Dhppa +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wno-uninitialized \ -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/hppa64/conf/Makefile.hppa64 b/sys/arch/hppa64/conf/Makefile.hppa64 index fd15cbe48de..cf6384bcd60 100644 --- a/sys/arch/hppa64/conf/Makefile.hppa64 +++ b/sys/arch/hppa64/conf/Makefile.hppa64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hppa64,v 1.21 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.hppa64,v 1.22 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ - -Dhppa64 +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wno-uninitialized \ -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk index 775694556d2..e004b60c750 100644 --- a/sys/arch/landisk/conf/Makefile.landisk +++ b/sys/arch/landisk/conf/Makefile.landisk @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.landisk,v 1.24 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.landisk,v 1.25 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,7 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Dlandisk +CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -D${_mach} CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson index 765af143ebe..30b839fa9e3 100644 --- a/sys/arch/loongson/conf/Makefile.loongson +++ b/sys/arch/loongson/conf/Makefile.loongson @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.loongson,v 1.14 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.loongson,v 1.15 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -85,8 +85,7 @@ SYSTEM_LD= @if [ X${DEBUG} = X-g ]; \ -Ttext=${LINK_ADDRESS} '$${SYSTEM_OBJ}' vers.o; \ ${LD} $$strip -o $@ -e start -T ${_machdir}/conf/ld.script \ -Ttext=${LINK_ADDRESS} ${SYSTEM_OBJ} vers.o -SYSTEM_LD_TAIL= chmod 755 $@; \ - ${SIZE} $@ +SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ DEBUG?= .if ${DEBUG} == "-g" diff --git a/sys/arch/luna88k/conf/Makefile.luna88k b/sys/arch/luna88k/conf/Makefile.luna88k index 7077bec6946..c536b35118f 100644 --- a/sys/arch/luna88k/conf/Makefile.luna88k +++ b/sys/arch/luna88k/conf/Makefile.luna88k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.luna88k,v 1.25 2010/04/27 06:46:26 deraadt Exp $ +# $OpenBSD: Makefile.luna88k,v 1.26 2010/04/27 16:54:53 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,7 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I. -I$S -I$S/arch -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dluna88k -Dm88k +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} -Dm88k CWARNFLAGS= -Wall -Werror -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main -Wstrict-prototypes \ -Wstack-larger-than-2047 -Wvariable-decl @@ -82,12 +82,12 @@ SYSTEM_DEP= Makefile ${SYSTEM_OBJ} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@; +SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ DEBUG?= .if ${DEBUG} == "-g" LINKFLAGS+= -X -SYSTEM_LD_TAIL+= \ +SYSTEM_LD_TAIL+=; \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@ .else @@ -141,7 +141,8 @@ links: sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks sh makelinks && rm -f dontlink -SRCS= param.c ioconf.c ${CFILES} ${SFILES} +SRCS= \ + param.c ioconf.c ${CFILES} ${SFILES} depend:: .depend .depend: ${SRCS} assym.h param.c ${DB_STRUCTINFO} diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k index 3fa06437bd6..6dcba3c87bd 100644 --- a/sys/arch/mac68k/conf/Makefile.mac68k +++ b/sys/arch/mac68k/conf/Makefile.mac68k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mac68k,v 1.53 2010/04/27 06:46:26 deraadt Exp $ +# $OpenBSD: Makefile.mac68k,v 1.54 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ - -Dmc68020 -Dmac68k +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} -Dmc68020 CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc index 959c6553bbf..dad288fe168 100644 --- a/sys/arch/macppc/conf/Makefile.macppc +++ b/sys/arch/macppc/conf/Makefile.macppc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.macppc,v 1.44 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.macppc,v 1.45 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL \ - -D__macppc__ +CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -D__${_mach}__ CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k index a82c031728b..6f3b04c0cd0 100644 --- a/sys/arch/mvme68k/conf/Makefile.mvme68k +++ b/sys/arch/mvme68k/conf/Makefile.mvme68k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mvme68k,v 1.45 2010/04/27 06:46:26 deraadt Exp $ +# $OpenBSD: Makefile.mvme68k,v 1.46 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ - -Dmc68020 -Dmvme68k +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} -Dmc68020 CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/mvme88k/conf/Makefile.mvme88k b/sys/arch/mvme88k/conf/Makefile.mvme88k index 372619bcab7..e9f4e77ac9c 100644 --- a/sys/arch/mvme88k/conf/Makefile.mvme88k +++ b/sys/arch/mvme88k/conf/Makefile.mvme88k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mvme88k,v 1.56 2010/04/27 06:46:26 deraadt Exp $ +# $OpenBSD: Makefile.mvme88k,v 1.57 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,7 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I. -I$S -I$S/arch -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dmvme88k -Dm88k +CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} -Dm88k CWARNFLAGS= -Wall -Werror -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main -Wstrict-prototypes \ -Wstack-larger-than-2047 -Wvariable-decl @@ -85,7 +85,7 @@ SYSTEM_DEP= Makefile ${SYSTEM_OBJ} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@; +SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ DEBUG?= .if ${DEBUG} == "-g" @@ -144,7 +144,8 @@ links: sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks sh makelinks && rm -f dontlink -SRCS= param.c ioconf.c ${CFILES} ${SFILES} +SRCS= \ + param.c ioconf.c ${CFILES} ${SFILES} depend:: .depend .depend: ${SRCS} assym.h param.c ${DB_STRUCTINFO} diff --git a/sys/arch/mvmeppc/conf/Makefile.mvmeppc b/sys/arch/mvmeppc/conf/Makefile.mvmeppc index 07a6deea18a..c56f4badad4 100644 --- a/sys/arch/mvmeppc/conf/Makefile.mvmeppc +++ b/sys/arch/mvmeppc/conf/Makefile.mvmeppc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mvmeppc,v 1.42 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.mvmeppc,v 1.43 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL \ - -D__mvmeppc__ +CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -D__${_mach}__ CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi index ab58495d989..29ae699b6a6 100644 --- a/sys/arch/sgi/conf/Makefile.sgi +++ b/sys/arch/sgi/conf/Makefile.sgi @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sgi,v 1.36 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.sgi,v 1.37 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -84,9 +84,7 @@ SYSTEM_LD= @if [ X${DEBUG} = X-g ]; \ -Ttext=${LINK_ADDRESS} '$${SYSTEM_OBJ}' vers.o; \ ${LD} $$strip -o $@ -e start -T ${_machdir}/conf/ld.script \ -Ttext=${LINK_ADDRESS} ${SYSTEM_OBJ} vers.o -# -SYSTEM_LD_TAIL= chmod 755 $@; \ - ${SIZE} $@ +SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ DEBUG?= .if ${DEBUG} == "-g" diff --git a/sys/arch/socppc/conf/Makefile.socppc b/sys/arch/socppc/conf/Makefile.socppc index a0360aa01d6..18eb871d48e 100644 --- a/sys/arch/socppc/conf/Makefile.socppc +++ b/sys/arch/socppc/conf/Makefile.socppc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.socppc,v 1.16 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.socppc,v 1.17 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -I. -I$S -I$S/arch -nostdinc -CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL \ - -D__socppc__ +CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -D__${_mach}__ CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/solbourne/conf/Makefile.solbourne b/sys/arch/solbourne/conf/Makefile.solbourne index 44f06aad361..eaf54087218 100644 --- a/sys/arch/solbourne/conf/Makefile.solbourne +++ b/sys/arch/solbourne/conf/Makefile.solbourne @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.solbourne,v 1.20 2010/04/27 06:46:26 deraadt Exp $ +# $OpenBSD: Makefile.solbourne,v 1.21 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I. -I$S -I$S/arch -CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Dsparc -Dsolbourne - +CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -D${_mach} -Dsparc CDIAGFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc index 700a73a6daf..7b887110d96 100644 --- a/sys/arch/sparc/conf/Makefile.sparc +++ b/sys/arch/sparc/conf/Makefile.sparc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sparc,v 1.57 2010/04/27 06:46:26 deraadt Exp $ +# $OpenBSD: Makefile.sparc,v 1.58 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -25,8 +25,7 @@ _machdir?= $S/arch/${_mach} _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I. -I$S -I$S/arch -CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Dsparc - +CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -D${_mach} CDIAGFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64 index 7559fc8a7bb..0716ea80cf1 100644 --- a/sys/arch/sparc64/conf/Makefile.sparc64 +++ b/sys/arch/sparc64/conf/Makefile.sparc64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sparc64,v 1.43 2010/04/27 16:50:15 jsg Exp $ +# $OpenBSD: Makefile.sparc64,v 1.44 2010/04/27 16:54:54 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -26,7 +26,6 @@ _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I. -I$S -I$S/arch CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL - CDIAGFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wno-uninitialized -Wno-format -Wno-main \ -Wstack-larger-than-2047 -Wvariable-decl |