mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
dba6dd177b
the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment.
37 lines
620 B
Makefile
37 lines
620 B
Makefile
# $FreeBSD$
|
|
|
|
.if ${MACHINE} == "pc98"
|
|
.PATH: ${.CURDIR}/../../pc98/pc98
|
|
.else
|
|
.PATH: ${.CURDIR}/../../dev/fdc
|
|
.endif
|
|
|
|
KMOD= fdc
|
|
.if ${MACHINE} == "pc98"
|
|
SRCS= fd.c
|
|
.else
|
|
SRCS= fdc.c
|
|
.endif
|
|
SRCS+= opt_fdc.h card.h \
|
|
bus_if.h card_if.h device_if.h isa_if.h pccarddevs.h
|
|
|
|
FDC_DEBUG?= 0 # 0/1
|
|
FDC_PCCARD?= 1 # 0/1 whether pccard support (i. e. Y-E DATA PCMCIA
|
|
# # fdc) is desired
|
|
|
|
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>
|