2000-05-27 00:54:15 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
# Search for kernel source tree in standard places.
|
2004-06-21 08:41:50 +00:00
|
|
|
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
|
2008-10-09 22:01:27 +00:00
|
|
|
${.CURDIR}/../../../../.. /sys /usr/src/sys
|
2004-06-21 08:41:50 +00:00
|
|
|
.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
|
2000-05-27 00:54:15 +00:00
|
|
|
SYSDIR= ${_dir}
|
|
|
|
.endif
|
|
|
|
.endfor
|
2004-06-21 08:41:50 +00:00
|
|
|
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
|
|
|
|
!exists(${SYSDIR}/conf/kmod.mk)
|
2012-02-16 21:04:47 +00:00
|
|
|
.error Unable to locate the kernel source tree. Set SYSDIR to override.
|
2000-05-27 00:54:15 +00:00
|
|
|
.endif
|
|
|
|
|
2000-05-27 01:11:17 +00:00
|
|
|
.include "${SYSDIR}/conf/kmod.mk"
|
2001-05-19 23:18:21 +00:00
|
|
|
|
|
|
|
.include <bsd.sys.mk>
|