2000-05-27 02:54:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
# Search for kernel source tree in standard places.
|
2004-06-21 10:41:50 +02:00
|
|
|
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
|
2004-06-21 18:12:02 +02:00
|
|
|
/sys /usr/src/sys
|
2004-06-21 10:41:50 +02:00
|
|
|
.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
|
2000-05-27 02:54:15 +02:00
|
|
|
SYSDIR= ${_dir}
|
|
|
|
.endif
|
|
|
|
.endfor
|
2004-06-21 10:41:50 +02:00
|
|
|
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
|
|
|
|
!exists(${SYSDIR}/conf/kmod.mk)
|
2000-05-27 02:54:15 +02:00
|
|
|
.error "can't find kernel source tree"
|
|
|
|
.endif
|
|
|
|
|
2000-05-27 03:11:17 +02:00
|
|
|
.include "${SYSDIR}/conf/kmod.mk"
|
2001-05-20 01:18:21 +02:00
|
|
|
|
|
|
|
.include <bsd.sys.mk>
|