3 SYSDIR?=${.CURDIR}/../..
4 .include "${SYSDIR}/conf/kern.opts.mk"
6 .PATH: ${SYSDIR}/dev/dpt
8 SRCS= dpt_scsi.c dpt.h \
10 opt_dpt.h opt_eisa.h \
11 opt_cam.h opt_scsi.h \
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.
21 .if !defined(KERNBUILDDIR)
22 SRCS+= dpt_eisa.c eisa_if.h
23 #SRCS+= dpt_isa.c isa_if.h
26 echo "#define DEV_EISA 1" > ${.TARGET}
28 DEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h
30 SRCS+= dpt_eisa.c eisa_if.h
32 #SRCS+= dpt_isa.c isa_if.h
36 .include <bsd.kmod.mk>