1# $FreeBSD$
2#
3
4.PATH:	${.CURDIR}/../../dev/dpt
5KMOD=	dpt
6SRCS=	dpt_scsi.c dpt.h \
7	dpt_pci.c pci_if.h \
8	opt_dpt.h opt_eisa.h \
9	opt_cam.h opt_scsi.h \
10	device_if.h bus_if.h
11
12.if ${MACHINE} != "i386"
13# Create an empty opt_eisa.h in order to keep kmod.mk from linking in an
14# existing one from KERNBUILDDIR which possibly has DEV_EISA defined so
15# dpt.ko is always built without EISA support.
16opt_eisa.h:
17	:> ${.TARGET}
18.else
19.if !defined(KERNBUILDDIR)
20SRCS+=	dpt_eisa.c eisa_if.h
21#SRCS+=	dpt_isa.c isa_if.h
22
23opt_eisa.h:
24	echo "#define DEV_EISA 1" > ${.TARGET}
25.else
26DEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h
27.if !empty(DEV_EISA)
28SRCS+=	dpt_eisa.c eisa_if.h
29.endif
30#SRCS+=	dpt_isa.c isa_if.h
31.endif
32.endif
33
34.include <bsd.kmod.mk>
35