minix/share/mk/bsd.kernobj.mk
Lionel Sambuc 84d9c625bf Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)
- Fix for possible unset uid/gid in toproto
 - Fix for default mtree style
 - Update libelf
 - Importing libexecinfo
 - Resynchronize GCC, mpc, gmp, mpfr
 - build.sh: Replace params with show-params.
     This has been done as the make target has been renamed in the same
     way, while a new target named params has been added. This new
     target generates a file containing all the parameters, instead of
     printing it on the console.
 - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
     get getservbyport() out of the inner loop

Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
2014-07-28 17:05:06 +02:00

34 lines
1.2 KiB
Makefile

# $NetBSD: bsd.kernobj.mk,v 1.14 2013/06/03 07:39:07 mrg Exp $
# KERNSRCDIR Is the location of the top of the kernel src.
# It defaults to `${NETBSDSRCDIR}/sys'.
#
# 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.
#
# KERNCONFDIRDEFAULT Is the default for ${KERNCONFDIR}.
# It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'.
#
# KERNCONFDIR Is where the configuration files for kernels are found.
# Users can set this to have build.sh find kernel
# configurations in another directory.
# It defaults to `${KERNCONFDIRDEFAULT}'.
#
# KERNOBJDIR Is the kernel build directory. The kernel GENERIC for
# instance will be compiled in ${KERNOBJDIR}/GENERIC.
# The default is the .OBJDIR of
# `${KERNSRCDIR}/${KERNARCHDIR}/compile'.
#
.include <bsd.own.mk>
KERNSRCDIR?= ${NETBSDSRCDIR}/sys
KERNARCHDIR?= arch/${MACHINE}
KERNCONFDIRDEFAULT?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
KERNCONFDIR?= ${KERNCONFDIRDEFAULT}
.if !defined(KERNOBJDIR) && exists(${KERNSRCDIR}/${KERNARCHDIR}/compile)
KERNOBJDIR!= cd "${KERNSRCDIR}/${KERNARCHDIR}/compile" && ${PRINTOBJDIR}
.endif