Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 991 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.else | .else | ||||
.if make(buildkernel) | .if make(buildkernel) | ||||
.error Missing KERNCONF ${KERNCONFDIR}/${_kernel} | .error Missing KERNCONF ${KERNCONFDIR}/${_kernel} | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
_cleankernobj_fast_depend_hack: .PHONY | |||||
# 20170202 remove stale generated assym.s after renaming to .inc in rXXXXXX | |||||
.if exists(${OBJTOP}/sys/${KERNCONF}/assym.s) | |||||
@echo Removing stale generated assym files | |||||
@rm -f ${OBJTOP}/sys/${KERNCONF}/assym.* \ | |||||
${OBJTOP}/sys/${KERNCONF}/.depend.assym.* | |||||
.endif | |||||
${WMAKE_TGTS:N_worldtmp:Nbuild${libcompat}} ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE .PHONY | ${WMAKE_TGTS:N_worldtmp:Nbuild${libcompat}} ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE .PHONY | ||||
# | # | ||||
# buildkernel | # buildkernel | ||||
# | # | ||||
# Builds all kernels defined by BUILDKERNELS. | # Builds all kernels defined by BUILDKERNELS. | ||||
# | # | ||||
buildkernel: .MAKE .PHONY | buildkernel: .MAKE .PHONY | ||||
Show All 19 Lines | |||||
-I '${KERNCONFDIR}' '${KERNCONFDIR}/${_kernel}' | -I '${KERNCONFDIR}' '${KERNCONFDIR}/${_kernel}' | ||||
.endif | .endif | ||||
.if !defined(NO_CLEAN) && !defined(NO_KERNELCLEAN) | .if !defined(NO_CLEAN) && !defined(NO_KERNELCLEAN) | ||||
@echo | @echo | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
@echo ">>> stage 2.1: cleaning up the object tree" | @echo ">>> stage 2.1: cleaning up the object tree" | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} ${CLEANDIR} | ${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} ${CLEANDIR} | ||||
.else | |||||
${_+_}cd ${.CURDIR}; ${WMAKE} _cleankernobj_fast_depend_hack | |||||
.endif | .endif | ||||
.if !defined(NO_KERNELOBJ) | .if !defined(NO_KERNELOBJ) | ||||
@echo | @echo | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
@echo ">>> stage 2.2: rebuilding the object tree" | @echo ">>> stage 2.2: rebuilding the object tree" | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} obj | ${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} obj | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 991 Lines • Show Last 20 Lines |