bsd.kernobj.mk revision 1.4 1 # $NetBSD: bsd.kernobj.mk,v 1.4 2000/05/07 01:20:47 sjg Exp $
2
3 # KERNSRCDIR Is the location of the top of the kernel src.
4 # It defaults to ${BSDSRCDIR}/sys, but the top-level
5 # Makefile.inc sets it to ${ABSTOP}/sys (ABSTOP is the
6 # absolute path to the directory where the top-level
7 # Makefile.inc was found.
8 #
9 # KERNARCHDIR Is the location of the machine dependent kernel
10 # sources. It defaults to arch/${MACHINE}
11 #
12 # KERNCONFDIR Is where the configuration files for kernels are
13 # found; default is ${KERNSRCDIR}/${KERNARCHDIR}/conf.
14 #
15 # KERNOBJDIR Is the kernel build directory. The kernel GENERIC for
16 # instance will be compiled in ${KERNOBJDIR}/GENERIC.
17 # The default value is
18 # ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
19 # if it exists or the target 'obj' is being made.
20 # Otherwise the default is
21 # ${KERNSRCDIR}/${KERNARCHDIR}/compile.
22 #
23
24 KERNSRCDIR?= ${BSDSRCDIR}/sys
25 # just incase ${MACHINE} is not always correct
26 KERNARCHDIR?= arch/${MACHINE}
27
28 .if make(obj) || exists(${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile)
29 KERNOBJDIR?= ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
30 .else
31 KERNOBJDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/compile
32 .endif
33 KERNCONFDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
34