]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/dpt/Makefile
Update compiler-rt to trunk r224034. This brings a number of new
[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
24 opt_eisa.h:
25         echo "#define DEV_EISA 1" > ${.TARGET}
26 .else
27 DEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h
28 .if !empty(DEV_EISA)
29 SRCS+=  dpt_eisa.c eisa_if.h
30 .endif
31 .endif
32 .endif
33
34 .include <bsd.kmod.mk>