Expand PMF_FN_* macros.
[netbsd-mini2440.git] / share / mk / bsd.kernobj.mk
blob8a6e926fa205415a60a6878998b520be1a7dbbd8
1 # $NetBSD: bsd.kernobj.mk,v 1.11 2003/07/18 04:04:03 lukem Exp $
3 # KERNSRCDIR Is the location of the top of the kernel src.
4 # It defaults to `${NETBSDSRCDIR}/sys'.
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.
10 # KERNCONFDIR Is where the configuration files for kernels are found.
11 # It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'.
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'.
19 .include <bsd.own.mk>
21 KERNSRCDIR?= ${NETBSDSRCDIR}/sys
22 KERNARCHDIR?= arch/${MACHINE}
23 KERNCONFDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
24 .if !defined(KERNOBJDIR) && exists(${KERNSRCDIR}/${KERNARCHDIR}/compile)
25 KERNOBJDIR!= cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
26 .endif