atapi and wcd LKMs.

Submitted by:	Serge Vakulenko, <vak@cronyx.ru>
This commit is contained in:
dg 1995-10-14 15:47:29 +00:00
parent 8d3425ea62
commit 2c16cdc8fb
4 changed files with 112 additions and 0 deletions

28
lkm/atapi/Makefile Normal file
View File

@ -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>

28
lkm/wcd/Makefile Normal file
View File

@ -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>

View File

@ -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>

28
sys/modules/wcd/Makefile Normal file
View File

@ -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>