1997-02-22 13:49:29 +01:00
|
|
|
# $Id$
|
1996-05-08 01:19:49 +02:00
|
|
|
|
1995-10-14 16:47:29 +01:00
|
|
|
.PATH: ${.CURDIR}/../../sys/i386/isa
|
|
|
|
KMOD = atapi_mod
|
1996-09-07 01:32:55 +02:00
|
|
|
SRCS = atapi.c wdc.h opt_atapi.h #wcd.h
|
1995-10-14 16:47:29 +01:00
|
|
|
NOMAN =
|
1996-09-07 01:32:55 +02:00
|
|
|
CFLAGS += -nostdinc -I. -DATAPI_MODULE
|
|
|
|
CLEANFILES += $(KMOD) machine wdc.h wcd.h opt_atapi.h *.b
|
1995-10-14 16:47:29 +01:00
|
|
|
LN = ln -f -s
|
1995-10-28 18:46:58 +01: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 16:47:29 +01:00
|
|
|
|
|
|
|
load: ${PROG}
|
1996-10-07 00:17:16 +02:00
|
|
|
${MODLOAD} -u -e atapi_mod $(PROG)
|
1995-10-14 16:47:29 +01:00
|
|
|
|
|
|
|
unload: ${PROG}
|
1996-10-07 00:17:16 +02:00
|
|
|
${MODUNLOAD} -n atapi
|
1995-10-14 16:47:29 +01:00
|
|
|
|
|
|
|
wdc.h:
|
|
|
|
echo "#define NWDC 2" > wdc.h
|
1995-10-28 18:46:58 +01:00
|
|
|
|
|
|
|
# echo "#define NWD 4" >> wdc.h
|
1995-10-14 16:47:29 +01:00
|
|
|
|
|
|
|
wcd.h:
|
|
|
|
echo "#define NWCD 1" > wcd.h
|
|
|
|
|
1996-09-07 01:32:55 +02:00
|
|
|
opt_atapi.h:
|
|
|
|
echo "#define ATAPI 1"> opt_atapi.h
|
|
|
|
|
1995-10-14 16:47:29 +01:00
|
|
|
.c.o:
|
|
|
|
-@$(LN) /sys/i386/include machine
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
1996-05-08 01:19:49 +02:00
|
|
|
-@rm -f machine
|
1995-10-14 16:47:29 +01:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|