Makefile revision 256281
177957Sbenno# $FreeBSD: stable/10/sys/modules/dpt/Makefile 168600 2007-04-10 20:33:31Z marius $ 277957Sbenno# 377957Sbenno 477957Sbenno.PATH: ${.CURDIR}/../../dev/dpt 577957SbennoKMOD= dpt 677957SbennoSRCS= dpt_scsi.c dpt.h \ 777957Sbenno dpt_pci.c pci_if.h \ 877957Sbenno opt_dpt.h opt_eisa.h \ 977957Sbenno opt_cam.h opt_scsi.h \ 1077957Sbenno device_if.h bus_if.h 1177957Sbenno 1277957Sbenno.if ${MACHINE} != "i386" 1377957Sbenno# Create an empty opt_eisa.h in order to keep kmod.mk from linking in an 1477957Sbenno# existing one from KERNBUILDDIR which possibly has DEV_EISA defined so 1577957Sbenno# dpt.ko is always built without EISA support. 1677957Sbennoopt_eisa.h: 1777957Sbenno :> ${.TARGET} 1877957Sbenno.else 1977957Sbenno.if !defined(KERNBUILDDIR) 2077957SbennoSRCS+= dpt_eisa.c eisa_if.h 2177957Sbenno#SRCS+= dpt_isa.c isa_if.h 2277957Sbenno 2377957Sbennoopt_eisa.h: 2477957Sbenno echo "#define DEV_EISA 1" > ${.TARGET} 2577957Sbenno.else 2677957SbennoDEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h 2777957Sbenno.if !empty(DEV_EISA) 2877957SbennoSRCS+= dpt_eisa.c eisa_if.h 2977957Sbenno.endif 3077957Sbenno#SRCS+= dpt_isa.c isa_if.h 3177957Sbenno.endif 3277957Sbenno.endif 3377957Sbenno 3477957Sbenno.include <bsd.kmod.mk> 3577957Sbenno