2001-06-29 07:36:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
KMOD= fdc
|
2004-07-15 16:44:14 +00:00
|
|
|
WARNS?= 2
|
2004-07-16 18:37:00 +00:00
|
|
|
|
2004-05-17 10:48:42 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
2004-07-16 18:37:00 +00:00
|
|
|
.PATH: ${.CURDIR}/../../pc98/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-16 18:37:00 +00:00
|
|
|
.PATH: ${.CURDIR}/../../dev/fdc
|
|
|
|
SRCS= fdc.c fdc_isa.c fdc_pccard.c
|
|
|
|
.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
|
2004-07-15 16:44:14 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica
|
2004-07-16 18:37:00 +00:00
|
|
|
SRCS+= opt_acpi.h acpi_if.h fdc_acpi.c
|
2004-05-17 10:48:42 +00:00
|
|
|
.endif
|
2004-07-16 18:37:00 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
SRCS+= opt_fdc.h bus_if.h card_if.h device_if.h \
|
2004-07-15 16:44:14 +00:00
|
|
|
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>
|