b897a20bc6
to the build in either sys/conf/files* or sys/modules/dpt/Makefile. Also, it was denoted as "doesn't quite work yet" when the file was initially added (which may account for it never having been hooked up to the build).
35 lines
746 B
Makefile
35 lines
746 B
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?=${.CURDIR}/../..
|
|
.include "${SYSDIR}/conf/kern.opts.mk"
|
|
|
|
.PATH: ${SYSDIR}/dev/dpt
|
|
KMOD= dpt
|
|
SRCS= dpt_scsi.c dpt.h \
|
|
dpt_pci.c pci_if.h \
|
|
opt_dpt.h opt_eisa.h \
|
|
opt_cam.h opt_scsi.h \
|
|
device_if.h bus_if.h
|
|
|
|
.if ${MK_EISA} == "no"
|
|
# Create an empty opt_eisa.h in order to keep kmod.mk from linking in an
|
|
# existing one from KERNBUILDDIR which possibly has DEV_EISA defined so
|
|
# dpt.ko is always built without EISA support.
|
|
opt_eisa.h:
|
|
:> ${.TARGET}
|
|
.else
|
|
.if !defined(KERNBUILDDIR)
|
|
SRCS+= dpt_eisa.c eisa_if.h
|
|
|
|
opt_eisa.h:
|
|
echo "#define DEV_EISA 1" > ${.TARGET}
|
|
.else
|
|
DEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h
|
|
.if !empty(DEV_EISA)
|
|
SRCS+= dpt_eisa.c eisa_if.h
|
|
.endif
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|