1996-05-07 23:19:49 +00:00
|
|
|
# $Id: $
|
|
|
|
|
1995-10-14 15:47:29 +00:00
|
|
|
.PATH: ${.CURDIR}/../../sys/i386/isa
|
|
|
|
KMOD = atapi_mod
|
1995-10-28 17:46:58 +00:00
|
|
|
SRCS = atapi.c wdc.h #wcd.h
|
1995-10-14 15:47:29 +00:00
|
|
|
NOMAN =
|
|
|
|
BINDIR = /lkm
|
|
|
|
CFLAGS += -nostdinc -I. -I/sys -DATAPI -DATAPI_MODULE
|
|
|
|
CLEANFILES += $(KMOD) machine wdc.h wcd.h *.b
|
|
|
|
LN = ln -f -s
|
1995-10-28 17:46:58 +00:00
|
|
|
EXPORT_SYMS = _atapi_mod _atapi_debug_ptr _atapi_intr_ptr \
|
|
|
|
_atapi_request_callback_ptr _atapi_request_immediate_ptr \
|
|
|
|
_atapi_request_wait_ptr _atapi_start_ptr
|
1995-10-14 15:47:29 +00:00
|
|
|
|
|
|
|
load: ${PROG}
|
1995-10-28 17:46:58 +00:00
|
|
|
/sbin/modload -u -e atapi_mod $(PROG)
|
1995-10-14 15:47:29 +00:00
|
|
|
|
|
|
|
unload: ${PROG}
|
|
|
|
/sbin/modunload -n atapi
|
|
|
|
|
|
|
|
wdc.h:
|
|
|
|
echo "#define NWDC 2" > wdc.h
|
1995-10-28 17:46:58 +00:00
|
|
|
|
|
|
|
# echo "#define NWD 4" >> wdc.h
|
1995-10-14 15:47:29 +00:00
|
|
|
|
|
|
|
wcd.h:
|
|
|
|
echo "#define NWCD 1" > wcd.h
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
-@$(LN) /sys/i386/include machine
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
1996-05-07 23:19:49 +00:00
|
|
|
-@rm -f machine
|
1995-10-14 15:47:29 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|