1996-10-06 22:17:16 +00:00
|
|
|
# $Id: Makefile,v 1.4 1996/09/06 23:32:55 pst Exp $
|
1996-05-07 23:19:49 +00:00
|
|
|
|
1995-10-14 15:47:29 +00:00
|
|
|
.PATH: ${.CURDIR}/../../sys/i386/isa
|
|
|
|
KMOD = wcd_mod
|
1996-09-06 23:32:55 +00:00
|
|
|
SRCS = wcd.c wdc.h wcd.h opt_atapi.h
|
1995-10-14 15:47:29 +00:00
|
|
|
NOMAN =
|
1996-09-06 23:32:55 +00:00
|
|
|
CFLAGS += -nostdinc -I. -DWCD_MODULE
|
|
|
|
CLEANFILES += $(KMOD) machine wdc.h wcd.h opt_atapi.h *.b
|
1995-10-14 15:47:29 +00:00
|
|
|
LN = ln -f -s
|
|
|
|
|
|
|
|
load: ${PROG}
|
1996-10-06 22:17:16 +00:00
|
|
|
${MODLOAD} -u -e wcd $(PROG)
|
1995-10-14 15:47:29 +00:00
|
|
|
|
|
|
|
unload: ${PROG}
|
1996-10-06 22:17:16 +00:00
|
|
|
${MODUNLOAD} -n wcd
|
1995-10-14 15:47:29 +00:00
|
|
|
|
|
|
|
wdc.h:
|
|
|
|
echo "#define NWDC 2" > wdc.h
|
|
|
|
echo "#define NWD 4" >> wdc.h
|
|
|
|
|
|
|
|
wcd.h:
|
|
|
|
echo "#define NWCD 1" > wcd.h
|
|
|
|
|
1996-09-06 23:32:55 +00:00
|
|
|
opt_atapi.h:
|
|
|
|
echo "#define ATAPI 1"> opt_atapi.h
|
|
|
|
|
1995-10-14 15:47:29 +00:00
|
|
|
.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>
|