Home | History | Annotate | Line # | Download | only in mk
bsd.kernobj.mk revision 1.3
      1 #	$NetBSD: bsd.kernobj.mk,v 1.3 2000/05/06 07:41:59 sjg Exp $
      2 
      3 #   KERNSRCDIR points to kernel source; it is set by default to ../sys,
      4 #	but can be overridden.
      5 #   KERNARCHDIR is the directory under kernel source that holds the md
      6 #	stuff.  Default is arch/${MACHINE}.
      7 #   KERNOBJDIR is the kernel build directory, it defaults to
      8 #	${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile/KERNELNAME
      9 #	if ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
     10 #	exists otherwise it defaults to
     11 #	${KERNSRCDIR}/${KERNARCHDIR}/compile/KERNELNAME, but can be
     12 #	overridden.  Or
     13 #   KERNCONFDIR is where the configuration files for kernels are found;
     14 #	default is ${KERNSRCDIR}/${KERNARCHDIR}/conf but can be overridden.
     15 
     16 KERNSRCDIR?=	${BSDSRCDIR}/sys
     17 # just incase ${MACHINE} is not always correct
     18 KERNARCHDIR?=	arch/${MACHINE}
     19 
     20 .if make(obj) || exists(${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile)
     21 KERNOBJDIR?=	${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
     22 .else
     23 KERNOBJDIR?=	${KERNSRCDIR}/${KERNARCHDIR}/compile
     24 .endif
     25 KERNCONFDIR?=	${KERNSRCDIR}/${KERNARCHDIR}/conf
     26