summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1998-06-12 23:22:30 +0000
committercgd <cgd@NetBSD.org>1998-06-12 23:22:30 +0000
commit651b44e2111eb94a39464a8a74e0c3cde85ac20b (patch)
tree997ddbbc79e9a440314fa0b388dcf44b16973bcd /sys/dev/microcode
parent67856105fa0604e92602b80c15a08cc90c1605d3 (diff)
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.
Diffstat (limited to 'sys/dev/microcode')
-rw-r--r--sys/dev/microcode/Makefile7
-rw-r--r--sys/dev/microcode/aic7xxx/Makefile10
-rw-r--r--sys/dev/microcode/aic7xxx/Makefile.sequencer9
-rw-r--r--sys/dev/microcode/isp/Makefile7
4 files changed, 27 insertions, 6 deletions
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 <bsd.kinc.mk>
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 <bsd.kinc.mk>
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 <bsd.kinc.mk>