Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 2,458 Lines • ▼ Show 20 Lines | if [ ! -e "$${source_path}" ] ; then \ | ||||
echo "Cannot find host tool '${_tool}'"; false; \ | echo "Cannot find host tool '${_tool}'"; false; \ | ||||
fi; \ | fi; \ | ||||
cp -pf "$${source_path}" "${WORLDTMP}/legacy/bin/${_tool}" | cp -pf "$${source_path}" "${WORLDTMP}/legacy/bin/${_tool}" | ||||
${_bt}-links: ${_bt}-link-${_tool} | ${_bt}-links: ${_bt}-link-${_tool} | ||||
.endfor | .endfor | ||||
bootstrap-tools: ${_bt}-links .PHONY | bootstrap-tools: ${_bt}-links .PHONY | ||||
# Our current make(1)-based approach to dependency tracking cannot cope with | |||||
# certain source tree changes. This target works around these issues. | |||||
# 20210301 XXXXX only build tic instead of all the ncurses tools. | |||||
bootstrap-tools-cleanup: .PHONY | |||||
echo "HELLO ${OBJTOP}/obj-tools" | |||||
if [ -f "${OBJTOP}"/usr.bin/ncurses/tic ]; then \ | |||||
echo "Removing stale ncurses bootstrap tools"; \ | |||||
rm -rf "${OBJTOP}"/usr.bin/ncurses; \ | |||||
fi; | |||||
# Please document (add comment) why something is in 'bootstrap-tools'. | # Please document (add comment) why something is in 'bootstrap-tools'. | ||||
# Try to bound the building of the bootstrap-tool to just the | # Try to bound the building of the bootstrap-tool to just the | ||||
# FreeBSD versions that need the tool built at this stage of the build. | # FreeBSD versions that need the tool built at this stage of the build. | ||||
.for _tool in \ | .for _tool in \ | ||||
${_clang_tblgen} \ | ${_clang_tblgen} \ | ||||
${_kerberos5_bootstrap_tools} \ | ${_kerberos5_bootstrap_tools} \ | ||||
${_strfile} \ | ${_strfile} \ | ||||
usr.bin/dtc \ | usr.bin/dtc \ | ||||
Show All 14 Lines | .for _tool in \ | ||||
${_config} \ | ${_config} \ | ||||
${_flua} \ | ${_flua} \ | ||||
${_crunchide} \ | ${_crunchide} \ | ||||
${_crunchgen} \ | ${_crunchgen} \ | ||||
${_mkimg} \ | ${_mkimg} \ | ||||
${_nmtree} \ | ${_nmtree} \ | ||||
${_vtfontcvt} \ | ${_vtfontcvt} \ | ||||
${_localedef} \ | ${_localedef} \ | ||||
usr.bin/ncurses \ | usr.bin/ncurses/tic \ | ||||
${LOCAL_BSTOOL_DIRS} | ${LOCAL_BSTOOL_DIRS} | ||||
${_bt}-${_tool}: ${_bt}-links .PHONY .MAKE | ${_bt}-${_tool}: ${_bt}-links bootstrap-tools-cleanup .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; \ | ||||
${MAKE} DIRPRFX=${_tool}/ DESTDIR=${WORLDTMP}/legacy install | ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${WORLDTMP}/legacy install | ||||
bootstrap-tools: ${_bt}-${_tool} | bootstrap-tools: ${_bt}-${_tool} | ||||
.endfor | .endfor | ||||
.if target(${_bt}-lib/libmd) | .if target(${_bt}-lib/libmd) | ||||
# If we are bootstrapping libmd (e.g. when building on macOS/Linux) add the | # If we are bootstrapping libmd (e.g. when building on macOS/Linux) add the | ||||
# necessary dependencies: | # necessary dependencies: | ||||
${_bt}-usr.bin/sort: ${_bt}-lib/libmd | ${_bt}-usr.bin/sort: ${_bt}-lib/libmd | ||||
${_bt}-usr.bin/xinstall: ${_bt}-lib/libmd | ${_bt}-usr.bin/xinstall: ${_bt}-lib/libmd | ||||
${_bt}-sbin/md5: ${_bt}-lib/libmd | ${_bt}-sbin/md5: ${_bt}-lib/libmd | ||||
.endif | .endif | ||||
.if target(${_bt}-usr.bin/ncurses) | .if target(${_bt}-usr.bin/ncurses/tic) | ||||
${_bt}-usr.bin/ncurses: ${_bt}-lib/ncurses/ncurses | ${_bt}-usr.bin/ncurses/tic: ${_bt}-lib/ncurses/ncurses | ||||
.endif | .endif | ||||
# | # | ||||
# build-tools: Build special purpose build tools | # build-tools: Build special purpose build tools | ||||
# | # | ||||
.if !defined(NO_SHARE) && ${MK_SYSCONS} != "no" | .if !defined(NO_SHARE) && ${MK_SYSCONS} != "no" | ||||
_share= share/syscons/scrnmaps | _share= share/syscons/scrnmaps | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 1,005 Lines • Show Last 20 Lines |