2003-01-06 20:40:18 +03:00
|
|
|
# $NetBSD: bsd.kernobj.mk,v 1.10 2003/01/06 17:40:19 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'.
|
2000-05-07 05:20:47 +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.
|
2000-05-07 05:20:47 +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'.
|
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'.
|
2000-05-07 05:20:47 +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-01-06 20:40:18 +03:00
|
|
|
.if !defined(KERNOBJDIR)
|
|
|
|
KERNOBJDIR!= cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
|
|
|
|
.endif
|