]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/dpt/Makefile
Use src.opts.mk in preference to bsd.own.mk except where we need stuff
[FreeBSD/FreeBSD.git] / sys / modules / dpt / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 .PATH:  ${.CURDIR}/../../dev/dpt
6 KMOD=   dpt
7 SRCS=   dpt_scsi.c dpt.h \
8         dpt_pci.c pci_if.h \
9         opt_dpt.h opt_eisa.h \
10         opt_cam.h opt_scsi.h \
11         device_if.h bus_if.h
12
13 .if ${MK_EISA} == "no"
14 # Create an empty opt_eisa.h in order to keep kmod.mk from linking in an
15 # existing one from KERNBUILDDIR which possibly has DEV_EISA defined so
16 # dpt.ko is always built without EISA support.
17 opt_eisa.h:
18         :> ${.TARGET}
19 .else
20 .if !defined(KERNBUILDDIR)
21 SRCS+=  dpt_eisa.c eisa_if.h
22 #SRCS+= dpt_isa.c isa_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 #SRCS+= dpt_isa.c isa_if.h
32 .endif
33 .endif
34
35 .include <bsd.kmod.mk>