2003-10-11 12:05:57 +04:00
|
|
|
# $NetBSD: bsd.kernobj.mk,v 1.12 2003/10/11 08:05:57 lukem Exp $
|
2000-05-02 07:43:15 +04:00
|
|
|
|
2000-05-07 05:20:47 +04:00
|
|
|
# KERNSRCDIR Is the location of the top of the kernel src.
|
2003-01-06 20:40:18 +03:00
|
|
|
# It defaults to `${NETBSDSRCDIR}/sys'.
|
2003-07-18 08:04:03 +04:00
|
|
|
#
|
2003-01-06 20:40:18 +03:00
|
|
|
# KERNARCHDIR Is the location of the machine dependent kernel sources.
|
|
|
|
# It defaults to `arch/${MACHINE}', but may be overridden
|
|
|
|
# in case ${MACHINE} is not correct.
|
2003-07-18 08:04:03 +04:00
|
|
|
#
|
2003-01-06 20:40:18 +03:00
|
|
|
# KERNCONFDIR Is where the configuration files for kernels are found.
|
|
|
|
# It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'.
|
2003-07-18 08:04:03 +04:00
|
|
|
#
|
2000-05-07 05:20:47 +04:00
|
|
|
# KERNOBJDIR Is the kernel build directory. The kernel GENERIC for
|
|
|
|
# instance will be compiled in ${KERNOBJDIR}/GENERIC.
|
2003-01-06 20:40:18 +03:00
|
|
|
# The default is the .OBJDIR of
|
|
|
|
# `${KERNSRCDIR}/${KERNARCHDIR}/compile'.
|
2003-07-18 08:04:03 +04:00
|
|
|
#
|
2000-05-02 07:43:15 +04:00
|
|
|
|
2001-11-27 08:39:03 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-04-26 19:02:02 +04:00
|
|
|
KERNSRCDIR?= ${NETBSDSRCDIR}/sys
|
2000-05-02 07:43:15 +04:00
|
|
|
KERNARCHDIR?= arch/${MACHINE}
|
|
|
|
KERNCONFDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
|
2003-10-11 12:05:57 +04:00
|
|
|
.if !defined(KERNOBJDIR) && exists(${KERNSRCDIR}/${KERNARCHDIR}/compile)
|
2003-01-06 20:40:18 +03:00
|
|
|
KERNOBJDIR!= cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
|
|
|
|
.endif
|