2000-05-26 20:54:15 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
|
|
# Search for kernel source tree in standard places.
|
2000-07-07 01:12:33 -04:00
|
|
|
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. /sys /usr/src/sys
|
2000-12-08 15:36:32 -05:00
|
|
|
.if !defined(SYSDIR) && exists(${_dir}/conf/kmod.mk)
|
2000-05-26 20:54:15 -04:00
|
|
|
SYSDIR= ${_dir}
|
|
|
|
|
.endif
|
|
|
|
|
.endfor
|
2000-12-08 15:36:32 -05:00
|
|
|
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern) || !exists(${SYSDIR}/conf/)
|
2000-05-26 20:54:15 -04:00
|
|
|
.error "can't find kernel source tree"
|
|
|
|
|
.endif
|
|
|
|
|
|
2000-05-26 21:11:17 -04:00
|
|
|
.include "${SYSDIR}/conf/kmod.mk"
|
2001-05-19 19:18:21 -04:00
|
|
|
|
|
|
|
|
.include <bsd.sys.mk>
|