summaryrefslogtreecommitdiffstats
path: root/sys/modules/wcd/Makefile
blob: d855075b61caacb2cf4b7c0d3eb1b27d4d9b8980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#	$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>
OpenPOWER on IntegriCloud