Home | History | Annotate | Line # | Download | only in mk
bsd.kernobj.mk revision 1.3
      1  1.3  sjg #	$NetBSD: bsd.kernobj.mk,v 1.3 2000/05/06 07:41:59 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 KERNSRCDIR?=	${BSDSRCDIR}/sys
     17  1.1  sjg # just incase ${MACHINE} is not always correct
     18  1.1  sjg KERNARCHDIR?=	arch/${MACHINE}
     19  1.1  sjg 
     20  1.3  sjg .if make(obj) || exists(${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile)
     21  1.1  sjg KERNOBJDIR?=	${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
     22  1.1  sjg .else
     23  1.1  sjg KERNOBJDIR?=	${KERNSRCDIR}/${KERNARCHDIR}/compile
     24  1.1  sjg .endif
     25  1.1  sjg KERNCONFDIR?=	${KERNSRCDIR}/${KERNARCHDIR}/conf
     26