freebsd-dev/sys/modules/wcd/Makefile
Wolfram Schneider 9fb933075e `mv'' -> `mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
1996-05-07 23:19:49 +00:00

31 lines
626 B
Makefile

# $Id: $
.PATH: ${.CURDIR}/../../sys/i386/isa
KMOD = wcd_mod
SRCS = wcd.c wdc.h wcd.h
NOMAN =
BINDIR = /lkm
CFLAGS += -nostdinc -I. -I/sys -DATAPI -DWCD_MODULE
CLEANFILES += $(KMOD) machine wdc.h wcd.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
.c.o:
-@$(LN) /sys/i386/include machine
$(CC) $(CFLAGS) -c $<
-@rm -f machine
.include <bsd.kmod.mk>