bsd.kernobj.mk revision 1.1 1 1.1 sjg # $NetBSD: bsd.kernobj.mk,v 1.1 2000/05/02 03:43:15 sjg Exp $
2 1.1 sjg
3 1.1 sjg # KERNSRCDIR points to kernel source; it is set by default to ../sys,
4 1.1 sjg # but can be overridden.
5 1.1 sjg # KERNARCHDIR is the directory under kernel source that holds the md
6 1.1 sjg # stuff. Default is arch/${MACHINE}.
7 1.1 sjg # KERNOBJDIR is the kernel build directory, it defaults to
8 1.1 sjg # ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile/KERNELNAME
9 1.1 sjg # if ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
10 1.1 sjg # exists otherwise it defaults to
11 1.1 sjg # ${KERNSRCDIR}/${KERNARCHDIR}/compile/KERNELNAME, but can be
12 1.1 sjg # overridden. Or
13 1.1 sjg # KERNCONFDIR is where the configuration files for kernels are found;
14 1.1 sjg # default is ${KERNSRCDIR}/${KERNARCHDIR}/conf but can be overridden.
15 1.1 sjg
16 1.1 sjg # we need a top level Makefile.inc to set BSDSRCDIR
17 1.1 sjg KERNSRCDIR?= ${BSDSRCDIR}/sys
18 1.1 sjg # just incase ${MACHINE} is not always correct
19 1.1 sjg KERNARCHDIR?= arch/${MACHINE}
20 1.1 sjg
21 1.1 sjg .if exists(${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile)
22 1.1 sjg KERNOBJDIR?= ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
23 1.1 sjg .else
24 1.1 sjg KERNOBJDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/compile
25 1.1 sjg .endif
26 1.1 sjg KERNCONFDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
27