bsd.kmod.mk revision 183736
11844Swollman# $FreeBSD: head/share/mk/bsd.kmod.mk 183736 2008-10-09 22:01:27Z imp $ 250476Speter 325710Swosch# Search for kernel source tree in standard places. 425710Swosch.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \ 525710Swosch ${.CURDIR}/../../../../.. /sys /usr/src/sys 625710Swosch.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk) 725710SwoschSYSDIR= ${_dir} 825710Swosch.endif 9106211Sru.endfor 10106211Sru.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \ 1125710Swosch !exists(${SYSDIR}/conf/kmod.mk) 12106211Sru.error "can't find kernel source tree" 1325710Swosch.endif 14106211Sru 1525710Swosch.include "${SYSDIR}/conf/kmod.mk" 16106211Sru 17106211Sru.include <bsd.sys.mk> 18106211Sru