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}/../../../.. \
|
2004-06-21 16:12:02 +00:00
|
|
|
/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)
|
2000-05-27 00:54:15 +00:00
|
|
|
.error "can't find kernel source tree"
|
|
|
|
.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>
|