12 # Based on bsd.kmod.mk but we don't modify SYSDIR in this one.
13 .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
15 .if !defined(_sysdir) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
19 .if !defined(_sysdir) || !exists(${_sysdir}/kern/) || \
20 !exists(${_sysdir}/conf/kmod.mk)
21 .error "can't find kernel source tree"
24 _toe_header = ${_sysdir}/netinet/toedev.h
26 .if exists(${_toe_header})
31 .if ${MACHINE_ARCH} == "i386" && exists(${_toe_header})
35 .if ${MACHINE_ARCH} == "amd64" && exists(${_toe_header})
39 .include <bsd.subdir.mk>