2 .-include <local.sysdir.mk>
4 # Search for kernel source tree in standard places.
6 .for _dir in ${SRCTOP:D${SRCTOP}/sys} \
7 ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
8 ${.CURDIR}/../../../../.. /sys /usr/src/sys
9 .if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
14 .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
15 !exists(${SYSDIR}/conf/kmod.mk)
16 .error Unable to locate the kernel source tree. Set SYSDIR to override.