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