2001-06-29 07:36:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2001-09-16 12:40:20 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
|
|
|
.PATH: ${.CURDIR}/../../pc98/pc98
|
|
|
|
CFLAGS+= -DPC98
|
|
|
|
.else
|
2001-06-29 07:36:29 +00:00
|
|
|
.PATH: ${.CURDIR}/../../isa
|
2001-09-16 12:40:20 +00:00
|
|
|
.endif
|
2001-06-29 07:36:29 +00:00
|
|
|
|
|
|
|
KMOD= fdc
|
|
|
|
SRCS= fd.c \
|
|
|
|
opt_fdc.h card.h \
|
|
|
|
bus_if.h card_if.h device_if.h isa_if.h
|
|
|
|
NOMAN=
|
|
|
|
|
2001-06-29 15:23:31 +00:00
|
|
|
FDC_DEBUG?= 0 # 0/1
|
|
|
|
FDC_PCCARD?= 1 # 0/1 whether pccard support (i. e. Y-E DATA PCMCIA
|
2001-06-29 10:01:24 +00:00
|
|
|
# # fdc) is desired
|
2001-06-29 07:36:29 +00:00
|
|
|
|
|
|
|
CLEANFILES= card.h
|
|
|
|
|
|
|
|
opt_fdc.h:
|
|
|
|
touch ${.TARGET}
|
|
|
|
.if ${FDC_DEBUG} > 0
|
|
|
|
echo "#define FDC_DEBUG 1" >> ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
card.h:
|
|
|
|
touch ${.TARGET}
|
|
|
|
.if ${FDC_PCCARD} > 0
|
|
|
|
echo "#define NCARD 1" >> ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|