Home | History | Annotate | Line # | Download | only in mk
bsd.kernobj.mk revision 1.10
      1  1.10  lukem #	$NetBSD: bsd.kernobj.mk,v 1.10 2003/01/06 17:40:19 lukem Exp $
      2   1.1    sjg 
      3   1.4    sjg # KERNSRCDIR	Is the location of the top of the kernel src.
      4  1.10  lukem # 		It defaults to `${NETBSDSRCDIR}/sys'.
      5   1.4    sjg # 
      6  1.10  lukem # KERNARCHDIR	Is the location of the machine dependent kernel sources.
      7  1.10  lukem #		It defaults to `arch/${MACHINE}', but may be overridden
      8  1.10  lukem #		in case ${MACHINE} is not correct.
      9   1.4    sjg # 		
     10  1.10  lukem # KERNCONFDIR	Is where the configuration files for kernels are found.
     11  1.10  lukem #		It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'.
     12   1.4    sjg # 
     13   1.4    sjg # KERNOBJDIR	Is the kernel build directory.  The kernel GENERIC for
     14   1.4    sjg # 		instance will be compiled in ${KERNOBJDIR}/GENERIC.
     15  1.10  lukem # 		The default is the .OBJDIR of
     16  1.10  lukem #		`${KERNSRCDIR}/${KERNARCHDIR}/compile'.
     17   1.4    sjg # 
     18   1.1    sjg 
     19   1.7    jmc .include <bsd.own.mk>
     20   1.7    jmc 
     21   1.9  lukem KERNSRCDIR?=	${NETBSDSRCDIR}/sys
     22   1.1    sjg KERNARCHDIR?=	arch/${MACHINE}
     23  1.10  lukem KERNCONFDIR?=	${KERNSRCDIR}/${KERNARCHDIR}/conf
     24  1.10  lukem .if !defined(KERNOBJDIR)
     25  1.10  lukem KERNOBJDIR!=	cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
     26   1.7    jmc .endif
     27