freebsd-skq/sys/modules/fdc/Makefile
Ruslan Ermilov 17d6c63672 Drop <bsd.man.mk> support from <bsd.kmod.mk>.
Not objected to by:	-current
2002-01-11 15:49:02 +00:00

34 lines
565 B
Makefile

# $FreeBSD$
.if ${MACHINE} == "pc98"
.PATH: ${.CURDIR}/../../pc98/pc98
CFLAGS+= -DPC98
.else
.PATH: ${.CURDIR}/../../isa
.endif
KMOD= fdc
SRCS= fd.c \
opt_fdc.h card.h \
bus_if.h card_if.h device_if.h isa_if.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>