2000-05-27 00:54:15 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
# Search for kernel source tree in standard places.
|
2000-07-07 05:12:33 +00:00
|
|
|
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. /sys /usr/src/sys
|
2000-12-08 20:36:32 +00:00
|
|
|
.if !defined(SYSDIR) && exists(${_dir}/conf/kmod.mk)
|
2000-05-27 00:54:15 +00:00
|
|
|
SYSDIR= ${_dir}
|
|
|
|
.endif
|
|
|
|
.endfor
|
2000-12-08 20:36:32 +00:00
|
|
|
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern) || !exists(${SYSDIR}/conf/)
|
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>
|