Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 1,632 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
# legacy: Build compatibility shims for the next three targets. This is a | # legacy: Build compatibility shims for the next three targets. This is a | ||||
# minimal set of tools and shims necessary to compensate for older systems | # minimal set of tools and shims necessary to compensate for older systems | ||||
# which don't have the APIs required by the targets built in bootstrap-tools, | # which don't have the APIs required by the targets built in bootstrap-tools, | ||||
# build-tools or cross-tools. | # build-tools or cross-tools. | ||||
# | # | ||||
# libcrypto is now private, needed by libarchive, which is needed by elfcopy | |||||
.if ${MK_CRYPT} != "no" | |||||
.if ${MK_OPENSSL} != "no" | |||||
_secure_lib_libcrypto= secure/lib/libcrypto | |||||
_secure_lib_libssl= secure/lib/libssl | |||||
.endif | |||||
.endif | |||||
# ELF Tool Chain libraries are needed for ELF tools and dtrace tools. | # ELF Tool Chain libraries are needed for ELF tools and dtrace tools. | ||||
# r296685 fix cross-endian objcopy | # r296685 fix cross-endian objcopy | ||||
.if ${BOOTSTRAPPING} < 1100102 | .if ${BOOTSTRAPPING} < 1100102 | ||||
_elftoolchain_libs= lib/libelf lib/libdwarf | _elftoolchain_libs= lib/libelf lib/libdwarf | ||||
.endif | .endif | ||||
legacy: .PHONY | legacy: .PHONY | ||||
# Temporary special case for automatically detecting the clang compiler issue | # Temporary special case for automatically detecting the clang compiler issue | ||||
# Note: 9.x didn't have FreeBSD_version bumps often enough, so you may need to | # Note: 9.x didn't have FreeBSD_version bumps often enough, so you may need to | ||||
# set BOOTSTRAPPING to 0 if you're stable/9 tree post-dates r286035 but is before | # set BOOTSTRAPPING to 0 if you're stable/9 tree post-dates r286035 but is before | ||||
# the version bump in r296219 (from July 29, 2015 -> Feb 29, 2016). | # the version bump in r296219 (from July 29, 2015 -> Feb 29, 2016). | ||||
.if ${BOOTSTRAPPING} != 0 && \ | .if ${BOOTSTRAPPING} != 0 && \ | ||||
${WANT_COMPILER_TYPE} == "clang" && ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 30601 | ${WANT_COMPILER_TYPE} == "clang" && ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 30601 | ||||
.if ${BOOTSTRAPPING} > 10000000 && ${BOOTSTRAPPING} < 1002501 | .if ${BOOTSTRAPPING} > 10000000 && ${BOOTSTRAPPING} < 1002501 | ||||
@echo "ERROR: Source upgrades from stable/10 prior to r286033 are not supported."; false | @echo "ERROR: Source upgrades from stable/10 prior to r286033 are not supported."; false | ||||
.elif ${BOOTSTRAPPING} > 9000000 && ${BOOTSTRAPPING} < 903509 | .elif ${BOOTSTRAPPING} > 9000000 && ${BOOTSTRAPPING} < 903509 | ||||
@echo "ERROR: Source upgrades from stable/9 prior to r286035 are not supported."; false | @echo "ERROR: Source upgrades from stable/9 prior to r286035 are not supported."; false | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.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 | ||||
# Install openssl .h files | |||||
.for _tool in ${_secure_lib_libcrypto} ${_secure_lib_libssl} | |||||
${_+_}@${ECHODIR} "===> ${_tool} (obj,includes)"; \ | |||||
cd ${.CURDIR}/${_tool}; \ | |||||
${MAKE} DIRPRFX=${_tool}/ obj; \ | |||||
${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX} includes; | |||||
.endfor | |||||
.for _tool in tools/build ${_elftoolchain_libs} | .for _tool in tools/build ${_elftoolchain_libs} | ||||
${_+_}@${ECHODIR} "===> ${_tool} (obj,includes,all,install)"; \ | ${_+_}@${ECHODIR} "===> ${_tool} (obj,includes,all,install)"; \ | ||||
cd ${.CURDIR}/${_tool}; \ | cd ${.CURDIR}/${_tool}; \ | ||||
if [ -z "${NO_OBJ}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \ | if [ -z "${NO_OBJ}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \ | ||||
${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX}/legacy includes; \ | ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX}/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=${MAKEOBJDIRPREFIX}/legacy install | DESTDIR=${MAKEOBJDIRPREFIX}/legacy install | ||||
▲ Show 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
bootstrap-tools: .PHONY | bootstrap-tools: .PHONY | ||||
# 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} \ | ||||
${_secure_lib_libcrypto} \ | |||||
${_kerberos5_bootstrap_tools} \ | ${_kerberos5_bootstrap_tools} \ | ||||
${_strfile} \ | ${_strfile} \ | ||||
${_gperf} \ | ${_gperf} \ | ||||
${_dtc} \ | ${_dtc} \ | ||||
${_cat} \ | ${_cat} \ | ||||
${_kbdcontrol} \ | ${_kbdcontrol} \ | ||||
usr.bin/lorder \ | usr.bin/lorder \ | ||||
${_libopenbsd} \ | ${_libopenbsd} \ | ||||
▲ Show 20 Lines • Show All 940 Lines • Show Last 20 Lines |