1# $FreeBSD$ 2 3# Build the kernel ${KERNCONF} 4KERNCONF?= ${KERNEL:UGENERIC} 5 6TARGET?= ${MACHINE} 7# keep this compatible with peoples expectations... 8KERN_OBJDIR= ${OBJTOP}/sys/${KERNCONF} 9KERN_CONFDIR= ${SRCTOP}/sys/${TARGET}/conf 10 11CONFIG= ${STAGE_HOST_OBJTOP}/usr/sbin/config 12 13${KERNCONF}.config: .MAKE ${META_DEPS} 14 mkdir -p ${KERN_OBJDIR:H} 15 (cd ${KERN_CONFDIR} && \ 16 ${CONFIG} ${CONFIGARGS} -d ${KERN_OBJDIR} ${KERNCONF}) 17 18${KERNCONF}.build: .MAKE ${KERNCONF}.config 19 (cd ${KERN_OBJDIR} && ${.MAKE}) 20 21.if ${.MAKE.LEVEL} > 0 22all: ${KERNCONF}.build 23.endif 24 25UPDATE_DEPENDFILE= no 26 27.include <bsd.prog.mk> 28