]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/dpt/Makefile
Reimport dts files from vendor repo now that it has been properly
[FreeBSD/FreeBSD.git] / sys / modules / dpt / Makefile
1 # $FreeBSD$
2
3 SYSDIR?=${.CURDIR}/../..
4 .include "${SYSDIR}/conf/kern.opts.mk"
5
6 .PATH:  ${SYSDIR}/dev/dpt
7 KMOD=   dpt
8 SRCS=   dpt_scsi.c dpt.h \
9         dpt_pci.c pci_if.h \
10         opt_dpt.h opt_eisa.h \
11         opt_cam.h opt_scsi.h \
12         device_if.h bus_if.h
13
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.
18 opt_eisa.h:
19         :> ${.TARGET}
20 .else
21 .if !defined(KERNBUILDDIR)
22 SRCS+=  dpt_eisa.c eisa_if.h
23 #SRCS+= dpt_isa.c isa_if.h
24
25 opt_eisa.h:
26         echo "#define DEV_EISA 1" > ${.TARGET}
27 .else
28 DEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h
29 .if !empty(DEV_EISA)
30 SRCS+=  dpt_eisa.c eisa_if.h
31 .endif
32 #SRCS+= dpt_isa.c isa_if.h
33 .endif
34 .endif
35
36 .include <bsd.kmod.mk>