dma: fix mail bouncing
[dragonfly.git] / share / mk / bsd.kmod.mk
blobc3a1b2c4e1660128145d964b1c7dca06a32d06b4
1 # $FreeBSD: src/share/mk/bsd.kmod.mk,v 1.75.2.4 2001/08/01 17:14:26 obrien Exp $
2 # $DragonFly: src/share/mk/bsd.kmod.mk,v 1.3 2003/08/20 19:38:45 dillon Exp $
4 # Search for kernel source tree in standard places.
5 .for _dir in ${.CURDIR}/.. ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. ${.CURDIR}/../../../../.. /sys /usr/src/sys
6 .if !defined(SYSDIR) && exists(${_dir}/conf/kmod.mk)
7 SYSDIR= ${_dir}
8 .endif
9 .endfor
10 .if !defined(SYSDIR) || !exists(${SYSDIR}/kern) || !exists(${SYSDIR}/conf/)
11 .error "can't find kernel source tree"
12 .endif
14 .include "${SYSDIR}/conf/kmod.mk"
15 .include "${SYSDIR}/conf/kern.paths.mk"
17 .include <bsd.sys.mk>