freebsd-nq/sys/modules/wcd/Makefile
Bruce Evans 88ed4cecd8 Don't use /sys.
Submitted by:	Jeremy Lea <reg@shale.csir.co.za>
1997-08-07 13:23:37 +00:00

33 lines
719 B
Makefile

# $Id: Makefile,v 1.7 1997/02/22 12:49:29 peter Exp $
.PATH: ${.CURDIR}/../../sys/i386/isa
KMOD = wcd_mod
SRCS = wcd.c wdc.h wcd.h opt_atapi.h
NOMAN =
CFLAGS += -nostdinc -I. -DWCD_MODULE
CLEANFILES += $(KMOD) machine wdc.h wcd.h opt_atapi.h *.b
LN = ln -f -s
load: ${PROG}
${MODLOAD} -u -e wcd $(PROG)
unload: ${PROG}
${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) ${.CURDIR}/../../sys/i386/include machine
$(CC) $(CFLAGS) -c $<
-@rm -f machine
.include <bsd.kmod.mk>