freebsd-nq/sys/modules/atapi/Makefile

29 lines
623 B
Makefile
Raw Normal View History

.PATH: ${.CURDIR}/../../sys/i386/isa
KMOD = atapi_mod
SRCS = atapi.c wdc.h wcd.h
NOMAN =
BINDIR = /lkm
CFLAGS += -nostdinc -I. -I/sys -DATAPI -DATAPI_MODULE
CLEANFILES += $(KMOD) machine wdc.h wcd.h *.b
LN = ln -f -s
load: ${PROG}
/sbin/modload -u -e atapi $(PROG)
unload: ${PROG}
/sbin/modunload -n atapi
wdc.h:
echo "#define NWDC 2" > wdc.h
echo "#define NWD 4" >> wdc.h
wcd.h:
echo "#define NWCD 1" > wcd.h
.c.o:
-@$(LN) /sys/i386/include machine
$(CC) $(CFLAGS) -c $<
-@rm machine
.include <bsd.kmod.mk>