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