xref: /freebsd/sys/modules/fdc/Makefile (revision c11c12792618404025412f0ce20f1ed4df7fff12)
1# $FreeBSD$
2
3KMOD=	fdc
4WARNS?=	2
5
6.if ${MACHINE} == "pc98"
7.PATH:  ${.CURDIR}/../../pc98/pc98
8SRCS=	fd.c fdc_cbus.c
9.else
10.PATH:  ${.CURDIR}/../../dev/fdc
11SRCS=	fdc.c fdc_isa.c fdc_pccard.c
12.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
13CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica
14SRCS+=	opt_acpi.h acpi_if.h fdc_acpi.c
15.endif
16.endif
17
18SRCS+=	opt_fdc.h bus_if.h card_if.h device_if.h \
19	isa_if.h pccarddevs.h
20
21FDC_DEBUG?=	0	# 0/1
22
23.if ${FDC_DEBUG} > 0
24	echo "#define FDC_DEBUG 1" >> ${.TARGET}
25.endif
26
27.include <bsd.kmod.mk>
28