]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/modules/dpt/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / modules / dpt / Makefile
1 # $FreeBSD$
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>