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