summaryrefslogtreecommitdiffstats
path: root/lkm
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-10-14 15:47:29 +0000
committerdg <dg@FreeBSD.org>1995-10-14 15:47:29 +0000
commit2c16cdc8fba8451770032ed1bffadf61d0e965d0 (patch)
tree0ab1a091b93b83361fdd28ab279f09f28214d46e /lkm
parent8d3425ea6285435601f20980b43c3143b05bc8d7 (diff)
downloadFreeBSD-src-2c16cdc8fba8451770032ed1bffadf61d0e965d0.zip
FreeBSD-src-2c16cdc8fba8451770032ed1bffadf61d0e965d0.tar.gz
atapi and wcd LKMs.
Submitted by: Serge Vakulenko, <vak@cronyx.ru>
Diffstat (limited to 'lkm')
-rw-r--r--lkm/atapi/Makefile28
-rw-r--r--lkm/wcd/Makefile28
2 files changed, 56 insertions, 0 deletions
diff --git a/lkm/atapi/Makefile b/lkm/atapi/Makefile
new file mode 100644
index 0000000..a2fb82d
--- /dev/null
+++ b/lkm/atapi/Makefile
@@ -0,0 +1,28 @@
+.PATH: ${.CURDIR}/../../sys/i386/isa
+KMOD = atapi_mod
+SRCS = atapi.c wdc.h wcd.h
+NOMAN =
+BINDIR = /lkm
+CFLAGS += -nostdinc -I. -I/sys -DATAPI -DATAPI_MODULE
+CLEANFILES += $(KMOD) machine wdc.h wcd.h *.b
+LN = ln -f -s
+
+load: ${PROG}
+ /sbin/modload -u -e atapi $(PROG)
+
+unload: ${PROG}
+ /sbin/modunload -n atapi
+
+wdc.h:
+ echo "#define NWDC 2" > wdc.h
+ echo "#define NWD 4" >> wdc.h
+
+wcd.h:
+ echo "#define NWCD 1" > wcd.h
+
+.c.o:
+ -@$(LN) /sys/i386/include machine
+ $(CC) $(CFLAGS) -c $<
+ -@rm machine
+
+.include <bsd.kmod.mk>
diff --git a/lkm/wcd/Makefile b/lkm/wcd/Makefile
new file mode 100644
index 0000000..162de4b
--- /dev/null
+++ b/lkm/wcd/Makefile
@@ -0,0 +1,28 @@
+.PATH: ${.CURDIR}/../../sys/i386/isa
+KMOD = wcd_mod
+SRCS = wcd.c wdc.h wcd.h
+NOMAN =
+BINDIR = /lkm
+CFLAGS += -nostdinc -I. -I/sys -DATAPI -DWCD_MODULE
+CLEANFILES += $(KMOD) machine wdc.h wcd.h *.b
+LN = ln -f -s
+
+load: ${PROG}
+ /sbin/modload -u -e wcd $(PROG)
+
+unload: ${PROG}
+ /sbin/modunload -n wcd
+
+wdc.h:
+ echo "#define NWDC 2" > wdc.h
+ echo "#define NWD 4" >> wdc.h
+
+wcd.h:
+ echo "#define NWCD 1" > wcd.h
+
+.c.o:
+ -@$(LN) /sys/i386/include machine
+ $(CC) $(CFLAGS) -c $<
+ -@rm machine
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud