aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/atapi
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-10-14 15:47:29 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-10-14 15:47:29 +0000
commitad7823eaf14771afc3ad8bc4bffcf1d0b65ba888 (patch)
tree0ab1a091b93b83361fdd28ab279f09f28214d46e /sys/modules/atapi
parent9b3e7ec49d4b1298f2b6d90f8e18610f319f6c69 (diff)
Notes
Diffstat (limited to 'sys/modules/atapi')
-rw-r--r--sys/modules/atapi/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/modules/atapi/Makefile b/sys/modules/atapi/Makefile
new file mode 100644
index 0000000000000..a2fb82d947164
--- /dev/null
+++ b/sys/modules/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>