1112803Smdodd# $FreeBSD: releng/10.3/sys/modules/dpt/Makefile 168600 2007-04-10 20:33:31Z marius $ 2112803Smdodd# 3112803Smdodd 4112803Smdodd.PATH: ${.CURDIR}/../../dev/dpt 5112803SmdoddKMOD= dpt 6112803SmdoddSRCS= dpt_scsi.c dpt.h \ 7112803Smdodd dpt_pci.c pci_if.h \ 8168600Smarius opt_dpt.h opt_eisa.h \ 9112803Smdodd opt_cam.h opt_scsi.h \ 10112803Smdodd device_if.h bus_if.h 11112803Smdodd 12168600Smarius.if ${MACHINE} != "i386" 13168600Smarius# Create an empty opt_eisa.h in order to keep kmod.mk from linking in an 14168600Smarius# existing one from KERNBUILDDIR which possibly has DEV_EISA defined so 15168600Smarius# dpt.ko is always built without EISA support. 16168600Smariusopt_eisa.h: 17168600Smarius :> ${.TARGET} 18168600Smarius.else 19168600Smarius.if !defined(KERNBUILDDIR) 20168600SmariusSRCS+= dpt_eisa.c eisa_if.h 21168600Smarius#SRCS+= dpt_isa.c isa_if.h 22168600Smarius 23168600Smariusopt_eisa.h: 24168600Smarius echo "#define DEV_EISA 1" > ${.TARGET} 25168600Smarius.else 26168600SmariusDEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h 27168600Smarius.if !empty(DEV_EISA) 28168600SmariusSRCS+= dpt_eisa.c eisa_if.h 29168600Smarius.endif 30168600Smarius#SRCS+= dpt_isa.c isa_if.h 31168600Smarius.endif 32168600Smarius.endif 33168600Smarius 34112803Smdodd.include <bsd.kmod.mk> 35