From 651b44e2111eb94a39464a8a74e0c3cde85ac20b Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 12 Jun 1998 23:22:30 +0000 Subject: Rework the way kernel include files are installed. In the new method, as with user-land programs, include files are installed by each directory in the tree that has includes to install. (This allows more flexibility as to what gets installed, makes 'partial installs' easier, and gives us more options as to which machines' includes get installed at any given time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_ still supported, though at least one bug in the 'symlinks' case is fixed by this change. Include files can't be build before installation, so directories that have includes as targets (e.g. dev/pci) have to move those targets into a different Makefile. --- sys/dev/microcode/Makefile | 7 +++++++ sys/dev/microcode/aic7xxx/Makefile | 10 ++++------ sys/dev/microcode/aic7xxx/Makefile.sequencer | 9 +++++++++ sys/dev/microcode/isp/Makefile | 7 +++++++ 4 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 sys/dev/microcode/Makefile create mode 100644 sys/dev/microcode/aic7xxx/Makefile.sequencer create mode 100644 sys/dev/microcode/isp/Makefile (limited to 'sys/dev/microcode') diff --git a/sys/dev/microcode/Makefile b/sys/dev/microcode/Makefile new file mode 100644 index 00000000000..715f51e647b --- /dev/null +++ b/sys/dev/microcode/Makefile @@ -0,0 +1,7 @@ +# $NetBSD: Makefile,v 1.1 1998/06/12 23:22:51 cgd Exp $ + +SUBDIR= aic7xxx isp + +INCSDIR= /usr/include/dev/microcode + +.include diff --git a/sys/dev/microcode/aic7xxx/Makefile b/sys/dev/microcode/aic7xxx/Makefile index 24e0b249701..2232b9b936b 100644 --- a/sys/dev/microcode/aic7xxx/Makefile +++ b/sys/dev/microcode/aic7xxx/Makefile @@ -1,9 +1,7 @@ -# $NetBSD: Makefile,v 1.2 1998/01/05 07:31:11 perry Exp $ +# $NetBSD: Makefile,v 1.3 1998/06/12 23:22:51 cgd Exp $ -aic7xxx_seq.h: aic7xxx_asm aic7xxx.seq - ./aic7xxx_asm -o ${.TARGET} aic7xxx.seq +INCSDIR= /usr/include/dev/microcode/aic7xxx -aic7xxx_asm: aic7xxx_asm.o - ${CC} -o $@ aic7xxx_asm.o +INCS= aic7xxx_seq.h -aic7xxx_asm.o: aic7xxx_asm.c +.include diff --git a/sys/dev/microcode/aic7xxx/Makefile.sequencer b/sys/dev/microcode/aic7xxx/Makefile.sequencer new file mode 100644 index 00000000000..7f38d3cdc9b --- /dev/null +++ b/sys/dev/microcode/aic7xxx/Makefile.sequencer @@ -0,0 +1,9 @@ +# $NetBSD: Makefile.sequencer,v 1.1 1998/06/12 23:22:52 cgd Exp $ + +aic7xxx_seq.h: aic7xxx_asm aic7xxx.seq + ./aic7xxx_asm -o ${.TARGET} aic7xxx.seq + +aic7xxx_asm: aic7xxx_asm.o + ${CC} -o $@ aic7xxx_asm.o + +aic7xxx_asm.o: aic7xxx_asm.c diff --git a/sys/dev/microcode/isp/Makefile b/sys/dev/microcode/isp/Makefile new file mode 100644 index 00000000000..ba6457b7cd9 --- /dev/null +++ b/sys/dev/microcode/isp/Makefile @@ -0,0 +1,7 @@ +# $NetBSD: Makefile,v 1.1 1998/06/12 23:22:52 cgd Exp $ + +INCSDIR= /usr/include/dev/microcode/isp + +INCS= asm_pci.h asm_sbus.h + +.include -- cgit