28 lines
603 B
Makefile
Raw Normal View History

2013-03-14 22:04:25 +00:00
# $FreeBSD$
# Build the kernel ${KERNCONF}
KERNCONF?= ${KERNEL:UGENERIC}
TARGET?= ${MACHINE}
# keep this compatible with peoples expectations...
KERN_OBJDIR= ${OBJTOP}/sys/${KERNCONF}
2013-03-14 22:04:25 +00:00
KERN_CONFDIR= ${SRCTOP}/sys/${TARGET}/conf
CONFIG= ${STAGE_HOST_OBJTOP}/usr/sbin/config
${KERNCONF}.config: .MAKE ${META_DEPS}
2013-03-14 22:04:25 +00:00
mkdir -p ${KERN_OBJDIR:H}
(cd ${KERN_CONFDIR} && \
${CONFIG} ${CONFIGARGS} -d ${KERN_OBJDIR} ${KERNCONF})
${KERNCONF}.build: .MAKE ${KERNCONF}.config
(cd ${KERN_OBJDIR} && ${.MAKE})
2013-03-14 22:04:25 +00:00
.if ${.MAKE.LEVEL} > 0
all: ${KERNCONF}.build
.endif
UPDATE_DEPENDFILE= no
.include <bsd.prog.mk>