From 2c16cdc8fba8451770032ed1bffadf61d0e965d0 Mon Sep 17 00:00:00 2001 From: dg Date: Sat, 14 Oct 1995 15:47:29 +0000 Subject: atapi and wcd LKMs. Submitted by: Serge Vakulenko, --- sys/modules/atapi/Makefile | 28 ++++++++++++++++++++++++++++ sys/modules/wcd/Makefile | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 sys/modules/atapi/Makefile create mode 100644 sys/modules/wcd/Makefile (limited to 'sys/modules') diff --git a/sys/modules/atapi/Makefile b/sys/modules/atapi/Makefile new file mode 100644 index 0000000..a2fb82d --- /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 diff --git a/sys/modules/wcd/Makefile b/sys/modules/wcd/Makefile new file mode 100644 index 0000000..162de4b --- /dev/null +++ b/sys/modules/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 -- cgit v1.1