Home | History | Annotate | Line # | Download | only in mk
bsd.kernobj.mk revision 1.1
      1 #	$NetBSD: bsd.kernobj.mk,v 1.1 2000/05/02 03:43:15 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 # we need a top level Makefile.inc to set BSDSRCDIR
     17 KERNSRCDIR?=	${BSDSRCDIR}/sys
     18 # just incase ${MACHINE} is not always correct
     19 KERNARCHDIR?=	arch/${MACHINE}
     20 
     21 .if exists(${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile)
     22 KERNOBJDIR?=	${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
     23 .else
     24 KERNOBJDIR?=	${KERNSRCDIR}/${KERNARCHDIR}/compile
     25 .endif
     26 KERNCONFDIR?=	${KERNSRCDIR}/${KERNARCHDIR}/conf
     27