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