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