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