2001-06-29 07:36:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2001-09-16 12:40:20 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
|
|
|
.PATH: ${.CURDIR}/../../pc98/pc98
|
|
|
|
.else
|
2004-05-17 10:48:42 +00:00
|
|
|
.PATH: ${.CURDIR}/../../dev/fdc
|
2001-09-16 12:40:20 +00:00
|
|
|
.endif
|
2001-06-29 07:36:29 +00:00
|
|
|
KMOD= fdc
|
2004-07-15 16:44:14 +00:00
|
|
|
WARNS?= 2
|
2004-05-17 10:48:42 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
2004-07-08 13:56:17 +00:00
|
|
|
SRCS= fd.c fdc_cbus.c
|
2004-05-17 10:48:42 +00:00
|
|
|
.else
|
2004-07-15 16:44:14 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica
|
|
|
|
SRCS= fdc.c fdc_acpi.c fdc_isa.c fdc_pccard.c
|
2004-05-17 10:48:42 +00:00
|
|
|
.endif
|
2004-07-15 16:44:14 +00:00
|
|
|
SRCS+= opt_acpi.h opt_fdc.h acpi_if.h bus_if.h card_if.h device_if.h \
|
|
|
|
isa_if.h pccarddevs.h
|
2001-06-29 07:36:29 +00:00
|
|
|
|
2001-06-29 15:23:31 +00:00
|
|
|
FDC_DEBUG?= 0 # 0/1
|
2001-06-29 07:36:29 +00:00
|
|
|
|
|
|
|
opt_fdc.h:
|
|
|
|
touch ${.TARGET}
|
|
|
|
.if ${FDC_DEBUG} > 0
|
|
|
|
echo "#define FDC_DEBUG 1" >> ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|