2000-05-07 05:20:47 +04:00
|
|
|
# $NetBSD: bsd.kernobj.mk,v 1.4 2000/05/07 01:20:47 sjg 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.
|
|
|
|
# It defaults to ${BSDSRCDIR}/sys, but the top-level
|
|
|
|
# Makefile.inc sets it to ${ABSTOP}/sys (ABSTOP is the
|
|
|
|
# absolute path to the directory where the top-level
|
|
|
|
# Makefile.inc was found.
|
|
|
|
#
|
|
|
|
# KERNARCHDIR Is the location of the machine dependent kernel
|
|
|
|
# sources. It defaults to arch/${MACHINE}
|
|
|
|
#
|
|
|
|
# KERNCONFDIR Is where the configuration files for kernels are
|
|
|
|
# found; default is ${KERNSRCDIR}/${KERNARCHDIR}/conf.
|
|
|
|
#
|
|
|
|
# KERNOBJDIR Is the kernel build directory. The kernel GENERIC for
|
|
|
|
# instance will be compiled in ${KERNOBJDIR}/GENERIC.
|
|
|
|
# The default value is
|
|
|
|
# ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
|
|
|
|
# if it exists or the target 'obj' is being made.
|
|
|
|
# Otherwise the default is
|
|
|
|
# ${KERNSRCDIR}/${KERNARCHDIR}/compile.
|
|
|
|
#
|
2000-05-02 07:43:15 +04:00
|
|
|
|
|
|
|
KERNSRCDIR?= ${BSDSRCDIR}/sys
|
|
|
|
# just incase ${MACHINE} is not always correct
|
|
|
|
KERNARCHDIR?= arch/${MACHINE}
|
|
|
|
|
2000-05-06 11:41:59 +04:00
|
|
|
.if make(obj) || exists(${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile)
|
2000-05-02 07:43:15 +04:00
|
|
|
KERNOBJDIR?= ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile
|
|
|
|
.else
|
|
|
|
KERNOBJDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/compile
|
|
|
|
.endif
|
|
|
|
KERNCONFDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
|