freebsd-skq/lkm/wcd/Makefile

34 lines
730 B
Makefile

# $Id: Makefile,v 1.3 1996/06/23 14:58:14 bde Exp $
.PATH: ${.CURDIR}/../../sys/i386/isa
KMOD = wcd_mod
SRCS = wcd.c wdc.h wcd.h opt_atapi.h
NOMAN =
BINDIR = /lkm
CFLAGS += -nostdinc -I. -DWCD_MODULE
CLEANFILES += $(KMOD) machine wdc.h wcd.h opt_atapi.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
opt_atapi.h:
echo "#define ATAPI 1"> opt_atapi.h
.c.o:
-@$(LN) /sys/i386/include machine
$(CC) $(CFLAGS) -c $<
-@rm -f machine
.include <bsd.kmod.mk>