Makefile revision 106497
1# $FreeBSD: head/sys/modules/fdc/Makefile 106497 2002-11-06 13:47:00Z nyan $
2
3.if ${MACHINE} == "pc98"
4.PATH:  ${.CURDIR}/../../pc98/pc98
5.else
6.PATH:  ${.CURDIR}/../../isa
7.endif
8
9KMOD=	fdc
10SRCS=	fd.c \
11	opt_fdc.h card.h \
12	bus_if.h card_if.h device_if.h isa_if.h
13
14FDC_DEBUG?=	0	# 0/1
15FDC_PCCARD?=	1	# 0/1  whether pccard support (i. e. Y-E DATA PCMCIA
16#			# fdc) is desired
17
18CLEANFILES=	card.h
19
20opt_fdc.h:
21	touch ${.TARGET}
22.if ${FDC_DEBUG} > 0
23	echo "#define FDC_DEBUG 1" >> ${.TARGET}
24.endif
25
26card.h:
27	touch ${.TARGET}
28.if ${FDC_PCCARD} > 0
29	echo "#define NCARD 1" >> ${.TARGET}
30.endif
31
32.include <bsd.kmod.mk>
33