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