Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. # $FreeBSD: src/share/mk/bsd.kmod.mk,v 1.92.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $
  2.  
  3. # Search for kernel source tree in standard places.
  4. .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
  5.     ${.CURDIR}/../../../../.. /sys /usr/src/sys
  6. .if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
  7. SYSDIR= ${_dir}
  8. .endif
  9. .endfor
  10. .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
  11.     !exists(${SYSDIR}/conf/kmod.mk)
  12. .error "can't find kernel source tree"
  13. .endif
  14.  
  15. .include "${SYSDIR}/conf/kmod.mk"
  16.  
  17. .include <bsd.sys.mk>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement