diff --git a/lkm/atapi/Makefile b/lkm/atapi/Makefile new file mode 100644 index 000000000000..a2fb82d94716 --- /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 diff --git a/lkm/wcd/Makefile b/lkm/wcd/Makefile new file mode 100644 index 000000000000..162de4b8d38f --- /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 diff --git a/sys/modules/atapi/Makefile b/sys/modules/atapi/Makefile new file mode 100644 index 000000000000..a2fb82d94716 --- /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 000000000000..162de4b8d38f --- /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