3 # Search for kernel source tree in standard places.
4 .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. /sys /usr/src/sys
5 .if !defined(SYSDIR) && exists(${_dir}/conf/kmod.mk)
9 .if !defined(SYSDIR) || !exists(${SYSDIR}/kern) || !exists(${SYSDIR}/conf/)
10 .error "can't find kernel source tree"
13 .include "${SYSDIR}/conf/kmod.mk"