summaryrefslogtreecommitdiffstats
path: root/sys/modules/fdc/Makefile
blob: b3751f7460b97e4eb6deebd28ce8d1c69011bcd1 (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
31
32
33
34
35
36
# $FreeBSD$

.if ${MACHINE} == "pc98"
.PATH:  ${.CURDIR}/../../pc98/pc98
.else
.PATH:  ${.CURDIR}/../../dev/fdc
.endif

KMOD=	fdc
.if ${MACHINE} == "pc98"
SRCS=	fd.c
.else
SRCS=	fdc.c
.endif
SRCS+=	opt_fdc.h card.h \
	bus_if.h card_if.h device_if.h isa_if.h

FDC_DEBUG?=	0	# 0/1
FDC_PCCARD?=	1	# 0/1  whether pccard support (i. e. Y-E DATA PCMCIA
#			# fdc) is desired

CLEANFILES=	card.h

opt_fdc.h:
	touch ${.TARGET}
.if ${FDC_DEBUG} > 0
	echo "#define FDC_DEBUG 1" >> ${.TARGET}
.endif

card.h:
	touch ${.TARGET}
.if ${FDC_PCCARD} > 0
	echo "#define NCARD 1" >> ${.TARGET}
.endif

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud