1# $FreeBSD: head/share/mk/bsd.kmod.mk 62748 2000-07-07 05:12:33Z imp $
| 1# $FreeBSD: head/share/mk/bsd.kmod.mk 69775 2000-12-08 20:36:32Z jasone $
|
2 3# Search for kernel source tree in standard places. 4.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. /sys /usr/src/sys
| 2 3# Search for kernel source tree in standard places. 4.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. /sys /usr/src/sys
|
5.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/)
| 5.if !defined(SYSDIR) && exists(${_dir}/conf/kmod.mk)
|
6SYSDIR= ${_dir} 7.endif 8.endfor
| 6SYSDIR= ${_dir} 7.endif 8.endfor
|
9.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || !exists(${SYSDIR}/conf/)
| 9.if !defined(SYSDIR) || !exists(${SYSDIR}/kern) || !exists(${SYSDIR}/conf/)
|
10.error "can't find kernel source tree" 11.endif 12 13.include "${SYSDIR}/conf/kmod.mk"
| 10.error "can't find kernel source tree" 11.endif 12 13.include "${SYSDIR}/conf/kmod.mk"
|