Changeset View
Changeset View
Standalone View
Standalone View
head/Makefile.inc1
Show All 14 Lines | |||||
# -DNO_ROOT install without using root privilege | # -DNO_ROOT install without using root privilege | ||||
# -DNO_DOCUPDATE do not update doc in ${MAKE} update | # -DNO_DOCUPDATE do not update doc in ${MAKE} update | ||||
# -DWITHOUT_CTF do not run the DTrace CTF conversion tools on built objects | # -DWITHOUT_CTF do not run the DTrace CTF conversion tools on built objects | ||||
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list | # LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list | ||||
# LOCAL_ITOOLS="list of tools" to add additional tools to the ITOOLS list | # LOCAL_ITOOLS="list of tools" to add additional tools to the ITOOLS list | ||||
# LOCAL_LIB_DIRS="list of dirs" to add additional dirs to libraries target | # LOCAL_LIB_DIRS="list of dirs" to add additional dirs to libraries target | ||||
# LOCAL_MTREE="list of mtree files" to process to allow local directories | # LOCAL_MTREE="list of mtree files" to process to allow local directories | ||||
# to be created before files are installed | # to be created before files are installed | ||||
# LOCAL_LEGACY_DIRS="list of dirs" to add additional dirs to the legacy | |||||
# target | |||||
# LOCAL_BSTOOL_DIRS="list of dirs" to add additional dirs to the | |||||
# bootstrap-tools target | |||||
# LOCAL_TOOL_DIRS="list of dirs" to add additional dirs to the build-tools | # LOCAL_TOOL_DIRS="list of dirs" to add additional dirs to the build-tools | ||||
# list | # target | ||||
# LOCAL_XTOOL_DIRS="list of dirs" to add additional dirs to the | # LOCAL_XTOOL_DIRS="list of dirs" to add additional dirs to the | ||||
# cross-tools target | # cross-tools target | ||||
# METALOG="path to metadata log" to write permission and ownership | # METALOG="path to metadata log" to write permission and ownership | ||||
# when NO_ROOT is set. (default: ${DESTDIR}/${DISTDIR}/METALOG, | # when NO_ROOT is set. (default: ${DESTDIR}/${DISTDIR}/METALOG, | ||||
# check /etc/make.conf for DISTDIR) | # check /etc/make.conf for DISTDIR) | ||||
# TARGET="machine" to crossbuild world for a different machine type | # TARGET="machine" to crossbuild world for a different machine type | ||||
# TARGET_ARCH= may be required when a TARGET supports multiple endians | # TARGET_ARCH= may be required when a TARGET supports multiple endians | ||||
# BUILDENV_SHELL= shell to launch for the buildenv target (def:${SHELL}) | # BUILDENV_SHELL= shell to launch for the buildenv target (def:${SHELL}) | ||||
▲ Show 20 Lines • Show All 2,089 Lines • ▼ Show 20 Lines | |||||
# build-tools or cross-tools. | # build-tools or cross-tools. | ||||
# | # | ||||
legacy: .PHONY | legacy: .PHONY | ||||
.if ${BOOTSTRAPPING} < ${MINIMUM_SUPPORTED_OSREL} && ${BOOTSTRAPPING} != 0 | .if ${BOOTSTRAPPING} < ${MINIMUM_SUPPORTED_OSREL} && ${BOOTSTRAPPING} != 0 | ||||
@echo "ERROR: Source upgrades from versions prior to ${MINIMUM_SUPPORTED_REL} are not supported."; \ | @echo "ERROR: Source upgrades from versions prior to ${MINIMUM_SUPPORTED_REL} are not supported."; \ | ||||
false | false | ||||
.endif | .endif | ||||
.for _tool in tools/build | .for _tool in \ | ||||
tools/build \ | |||||
${LOCAL_LEGACY_DIRS} | |||||
${_+_}@${ECHODIR} "===> ${_tool} (obj,includes,all,install)"; \ | ${_+_}@${ECHODIR} "===> ${_tool} (obj,includes,all,install)"; \ | ||||
cd ${.CURDIR}/${_tool}; \ | cd ${.CURDIR}/${_tool}; \ | ||||
if [ -z "${NO_OBJWALK}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \ | if [ -z "${NO_OBJWALK}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \ | ||||
${MAKE} DIRPRFX=${_tool}/ DESTDIR=${WORLDTMP}/legacy includes; \ | ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${WORLDTMP}/legacy includes; \ | ||||
${MAKE} DIRPRFX=${_tool}/ MK_INCLUDES=no all; \ | ${MAKE} DIRPRFX=${_tool}/ MK_INCLUDES=no all; \ | ||||
${MAKE} DIRPRFX=${_tool}/ MK_INCLUDES=no \ | ${MAKE} DIRPRFX=${_tool}/ MK_INCLUDES=no \ | ||||
DESTDIR=${WORLDTMP}/legacy install | DESTDIR=${WORLDTMP}/legacy install | ||||
.endfor | .endfor | ||||
▲ Show 20 Lines • Show All 314 Lines • ▼ Show 20 Lines | .for _tool in \ | ||||
usr.bin/xinstall \ | usr.bin/xinstall \ | ||||
${_gensnmptree} \ | ${_gensnmptree} \ | ||||
${_config} \ | ${_config} \ | ||||
${_flua} \ | ${_flua} \ | ||||
${_crunchide} \ | ${_crunchide} \ | ||||
${_crunchgen} \ | ${_crunchgen} \ | ||||
${_nmtree} \ | ${_nmtree} \ | ||||
${_vtfontcvt} \ | ${_vtfontcvt} \ | ||||
${_localedef} | ${_localedef} \ | ||||
${LOCAL_BSTOOL_DIRS} | |||||
${_bt}-${_tool}: ${_bt}-links .PHONY .MAKE | ${_bt}-${_tool}: ${_bt}-links .PHONY .MAKE | ||||
${_+_}@${ECHODIR} "===> ${_tool} (obj,all,install)"; \ | ${_+_}@${ECHODIR} "===> ${_tool} (obj,all,install)"; \ | ||||
cd ${.CURDIR}/${_tool}; \ | cd ${.CURDIR}/${_tool}; \ | ||||
if [ -z "${NO_OBJWALK}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \ | if [ -z "${NO_OBJWALK}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \ | ||||
if [ "${_tool}" = "usr.bin/lex" ]; then \ | if [ "${_tool}" = "usr.bin/lex" ]; then \ | ||||
${MAKE} DIRPRFX=${_tool}/ bootstrap; \ | ${MAKE} DIRPRFX=${_tool}/ bootstrap; \ | ||||
fi; \ | fi; \ | ||||
${MAKE} DIRPRFX=${_tool}/ all; \ | ${MAKE} DIRPRFX=${_tool}/ all; \ | ||||
▲ Show 20 Lines • Show All 1,030 Lines • Show Last 20 Lines |