Changeset View
Changeset View
Standalone View
Standalone View
targets/pseudo/bootstrap-tools/Makefile
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | BSARGS= DESTDIR= \ | ||||
MK_HTML=no NO_LINT=yes MK_MAN=no \ | MK_HTML=no NO_LINT=yes MK_MAN=no \ | ||||
-DNO_PIC MK_PROFILE=no -DNO_SHARED \ | -DNO_PIC MK_PROFILE=no -DNO_SHARED \ | ||||
-DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \ | -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \ | ||||
MK_CLANG_EXTRAS=no MK_CLANG_FULL=no \ | MK_CLANG_EXTRAS=no MK_CLANG_FULL=no \ | ||||
MK_LLDB=no MK_TESTS=no \ | MK_LLDB=no MK_TESTS=no \ | ||||
MK_INCLUDES=yes | MK_INCLUDES=yes | ||||
# We will handle building the toolchain and cross-compiler. | # We will handle building the toolchain and cross-compiler. | ||||
BSARGS+= MK_CROSS_COMPILER=no MK_CLANG=no MK_GCC=no | BSARGS+= MK_CROSS_COMPILER=no MK_CLANG=no | ||||
DISTRIB_ENV= INSTALL="sh ${SRCTOP}/tools/install.sh" NO_FSCHG=1 MK_TESTS=no | DISTRIB_ENV= INSTALL="sh ${SRCTOP}/tools/install.sh" NO_FSCHG=1 MK_TESTS=no | ||||
legacy: .MAKE ${META_DEPS} | legacy: .MAKE ${META_DEPS} | ||||
mkdir -p ${LEGACY_TOOLS} | mkdir -p ${LEGACY_TOOLS} | ||||
${DISTRIB_ENV} ${MAKE} -C ${SRCTOP}/etc distrib-dirs \ | ${DISTRIB_ENV} ${MAKE} -C ${SRCTOP}/etc distrib-dirs \ | ||||
DESTDIR=${BTOOLSDIR} > $@.distrib-dirs_btoolsdir | DESTDIR=${BTOOLSDIR} > $@.distrib-dirs_btoolsdir | ||||
${DISTRIB_ENV} ${MAKE} -C ${SRCTOP}/etc distrib-dirs \ | ${DISTRIB_ENV} ${MAKE} -C ${SRCTOP}/etc distrib-dirs \ | ||||
DESTDIR=${LEGACY_TOOLS} > $@.distrib-dirs_legacy_tools | DESTDIR=${LEGACY_TOOLS} > $@.distrib-dirs_legacy_tools | ||||
Show All 13 Lines | BSTCENV= \ | ||||
MAKELEVEL=0 \ | MAKELEVEL=0 \ | ||||
MACHINE=host \ | MACHINE=host \ | ||||
BOOTSTRAPPING_TOOLS=1 \ | BOOTSTRAPPING_TOOLS=1 \ | ||||
TARGET=${HOST_MACHINE} \ | TARGET=${HOST_MACHINE} \ | ||||
TARGET_ARCH=${HOST_MACHINE_ARCH} \ | TARGET_ARCH=${HOST_MACHINE_ARCH} \ | ||||
${BSENV:MPATH=*} | ${BSENV:MPATH=*} | ||||
BSTCARGS= \ | BSTCARGS= \ | ||||
${BSARGS:NDESTDIR=*:NOBJTOP=*:NOBJROOT=*:NMK_CROSS_COMPILER=*:NMK_CLANG=*:NMK_GCC=*} \ | ${BSARGS:NDESTDIR=*:NOBJTOP=*:NOBJROOT=*:NMK_CROSS_COMPILER=*:NMK_CLANG=*} \ | ||||
BUILD_DIRDEPS=yes \ | BUILD_DIRDEPS=yes \ | ||||
LLVM_TBLGEN=${TOOLSDIR}/usr/bin/llvm-tblgen \ | LLVM_TBLGEN=${TOOLSDIR}/usr/bin/llvm-tblgen \ | ||||
CLANG_TBLGEN=${TOOLSDIR}/usr/bin/clang-tblgen \ | CLANG_TBLGEN=${TOOLSDIR}/usr/bin/clang-tblgen \ | ||||
-DWITH_STAGING \ | -DWITH_STAGING \ | ||||
-DWITH_TOOLSDIR | -DWITH_TOOLSDIR | ||||
# finally we build toolchain leveraging the above. | # finally we build toolchain leveraging the above. | ||||
bootstrap-toolchain: .MAKE cross-tools | bootstrap-toolchain: .MAKE cross-tools | ||||
${BSTCENV} ${MAKE} -C ${SRCTOP} ${BSTCARGS} toolchain | ${BSTCENV} ${MAKE} -C ${SRCTOP} ${BSTCARGS} toolchain | ||||
# Ensure CCACHE_DIR is ignored since we are processing .meta files here. | # Ensure CCACHE_DIR is ignored since we are processing .meta files here. | ||||
.include <bsd.compiler.mk> | .include <bsd.compiler.mk> |