From 198bd713f270b230bf15e87e12219ed638fc3f3d Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 12 Jul 1997 22:07:36 +0000 Subject: [PATCH] Generate assym.h dependencies when making 'depend'. --- sys/arch/amiga/conf/Makefile.amiga | 7 ++++++- sys/arch/atari/conf/Makefile.atari | 6 +++++- sys/arch/hp300/conf/Makefile.hp300 | 6 +++++- sys/arch/i386/conf/Makefile.i386 | 6 +++++- sys/arch/mac68k/conf/Makefile.mac68k | 6 +++++- sys/arch/mvme68k/conf/Makefile.mvme68k | 6 +++++- sys/arch/ofppc/conf/Makefile.ofppc | 6 +++++- sys/arch/pc532/conf/Makefile.pc532 | 6 +++++- sys/arch/pica/conf/Makefile.pica | 6 +++++- sys/arch/pmax/conf/Makefile.pmax | 6 +++++- sys/arch/powerpc/conf/Makefile.powerpc | 6 +++++- sys/arch/sparc/conf/Makefile.sparc | 7 +++++-- 12 files changed, 61 insertions(+), 13 deletions(-) diff --git a/sys/arch/amiga/conf/Makefile.amiga b/sys/arch/amiga/conf/Makefile.amiga index 8528787a620c..355bdb33a148 100644 --- a/sys/arch/amiga/conf/Makefile.amiga +++ b/sys/arch/amiga/conf/Makefile.amiga @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.amiga,v 1.58 1997/06/23 23:46:27 is Exp $ +# $NetBSD: Makefile.amiga,v 1.59 1997/07/12 22:07:36 leo Exp $ # Makefile for NetBSD # @@ -161,6 +161,11 @@ depend: .depend ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${AMIGA}/amiga/locore.s ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${AMIGA}/amiga/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep + # depend on root or device configuration autoconf.o conf.o: Makefile diff --git a/sys/arch/atari/conf/Makefile.atari b/sys/arch/atari/conf/Makefile.atari index 7bfc56bfa3ba..5c337eb6610b 100644 --- a/sys/arch/atari/conf/Makefile.atari +++ b/sys/arch/atari/conf/Makefile.atari @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.atari,v 1.33 1997/06/04 13:51:48 leo Exp $ +# $NetBSD: Makefile.atari,v 1.34 1997/07/12 22:07:54 leo Exp $ # Makefile for NetBSD # @@ -161,6 +161,10 @@ depend: .depend ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ATARI}/atari/locore.s ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${ATARI}/atari/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300 index e6d5bad1fbb8..b16ccc6b0883 100644 --- a/sys/arch/hp300/conf/Makefile.hp300 +++ b/sys/arch/hp300/conf/Makefile.hp300 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.hp300,v 1.54 1997/04/01 23:16:41 scottr Exp $ +# $NetBSD: Makefile.hp300,v 1.55 1997/07/12 22:07:55 leo Exp $ # Makefile for NetBSD # @@ -153,6 +153,10 @@ depend: .depend -if test -n "${SFILES}"; then \ ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}; \ fi + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${HP300}/hp300/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386 index 0cf6a7d9446e..dd726051bad4 100644 --- a/sys/arch/i386/conf/Makefile.i386 +++ b/sys/arch/i386/conf/Makefile.i386 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.i386,v 1.82 1997/03/14 23:16:08 mycroft Exp $ +# $NetBSD: Makefile.i386,v 1.83 1997/07/12 22:07:57 leo Exp $ # Makefile for NetBSD # @@ -144,6 +144,10 @@ depend: .depend ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${I386}/i386/locore.s ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${I386}/i386/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k index 97d6bdd2df01..01ae167be92e 100644 --- a/sys/arch/mac68k/conf/Makefile.mac68k +++ b/sys/arch/mac68k/conf/Makefile.mac68k @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.mac68k,v 1.53 1997/04/15 06:11:38 scottr Exp $ +# $NetBSD: Makefile.mac68k,v 1.54 1997/07/12 22:07:58 leo Exp $ # Makefile for NetBSD # @@ -156,6 +156,10 @@ depend: .depend -if test -n "${SFILES}"; then \ ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}; \ fi + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${MAC68K}/mac68k/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k index 53d07d76361b..3fb7ef2dbbf7 100644 --- a/sys/arch/mvme68k/conf/Makefile.mvme68k +++ b/sys/arch/mvme68k/conf/Makefile.mvme68k @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.mvme68k,v 1.25 1997/04/25 01:46:53 thorpej Exp $ +# $NetBSD: Makefile.mvme68k,v 1.26 1997/07/12 22:07:59 leo Exp $ # Makefile for NetBSD # @@ -157,6 +157,10 @@ depend: .depend -if test -n "${SFILES}"; then \ ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}; \ fi + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${MVME68K}/mvme68k/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration diff --git a/sys/arch/ofppc/conf/Makefile.ofppc b/sys/arch/ofppc/conf/Makefile.ofppc index fdfaf6338585..21323f47ff36 100644 --- a/sys/arch/ofppc/conf/Makefile.ofppc +++ b/sys/arch/ofppc/conf/Makefile.ofppc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.ofppc,v 1.7 1997/04/19 01:47:24 thorpej Exp $ +# $NetBSD: Makefile.ofppc,v 1.8 1997/07/12 22:08:04 leo Exp $ # # Makefile for NetBSD # @@ -155,6 +155,10 @@ depend: .depend .if ${SFILES} != "" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} .endif + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${PPC}/powerpc/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration autoconf.o conf.o: Makefile diff --git a/sys/arch/pc532/conf/Makefile.pc532 b/sys/arch/pc532/conf/Makefile.pc532 index 8e974d74afc0..bd953169794d 100644 --- a/sys/arch/pc532/conf/Makefile.pc532 +++ b/sys/arch/pc532/conf/Makefile.pc532 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.pc532,v 1.43 1997/04/01 16:30:48 matthias Exp $ +# $NetBSD: Makefile.pc532,v 1.44 1997/07/12 22:08:01 leo Exp $ # Makefile for NetBSD # @@ -150,6 +150,10 @@ depend: .depend ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PC532}/pc532/locore.s ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${PC532}/pc532/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration autoconf.o conf.o: Makefile diff --git a/sys/arch/pica/conf/Makefile.pica b/sys/arch/pica/conf/Makefile.pica index e0dd5f8f6f09..038883c6c3e9 100644 --- a/sys/arch/pica/conf/Makefile.pica +++ b/sys/arch/pica/conf/Makefile.pica @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.pica,v 1.14 1997/06/23 02:56:38 jonathan Exp $ +# $NetBSD: Makefile.pica,v 1.15 1997/07/12 22:08:02 leo Exp $ # Makefile for NetBSD # @@ -157,6 +157,10 @@ depend: .depend ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PICA}/pica/locore_machdep.S ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${MIPS}/mips/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration diff --git a/sys/arch/pmax/conf/Makefile.pmax b/sys/arch/pmax/conf/Makefile.pmax index 93f104697a97..10c9f859477c 100644 --- a/sys/arch/pmax/conf/Makefile.pmax +++ b/sys/arch/pmax/conf/Makefile.pmax @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.pmax,v 1.49 1997/06/23 02:40:29 jonathan Exp $ +# $NetBSD: Makefile.pmax,v 1.50 1997/07/12 22:08:03 leo Exp $ # Makefile for NetBSD # @@ -157,6 +157,10 @@ depend: .depend ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore_machdep.S ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${MIPS}/mips/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration diff --git a/sys/arch/powerpc/conf/Makefile.powerpc b/sys/arch/powerpc/conf/Makefile.powerpc index 2ab5d8c63761..b0613e00f613 100644 --- a/sys/arch/powerpc/conf/Makefile.powerpc +++ b/sys/arch/powerpc/conf/Makefile.powerpc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.powerpc,v 1.7 1997/04/19 01:47:24 thorpej Exp $ +# $NetBSD: Makefile.powerpc,v 1.8 1997/07/12 22:08:04 leo Exp $ # # Makefile for NetBSD # @@ -155,6 +155,10 @@ depend: .depend .if ${SFILES} != "" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} .endif + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${PPC}/powerpc/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration autoconf.o conf.o: Makefile diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc index afa15d0ad2f0..5e206870e22a 100644 --- a/sys/arch/sparc/conf/Makefile.sparc +++ b/sys/arch/sparc/conf/Makefile.sparc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.sparc,v 1.44 1997/03/14 23:23:45 mycroft Exp $ +# $NetBSD: Makefile.sparc,v 1.45 1997/07/12 22:08:05 leo Exp $ # Makefile for NetBSD # @@ -145,7 +145,10 @@ depend: .depend ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${SPARC}/sparc/locore.s ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES} ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} - + sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ + ${CPPFLAGS} < ${SPARC}/sparc/genassym.cf + @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend + @rm -f assym.dep # depend on root or device configuration autoconf.o conf.o: Makefile