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