Makefile.inc1 (f6e116eea97e79450fb8dcf81193f35dfc30fae1) | Makefile.inc1 (996e4759621dd7150cec5ad240e252b35a4d9db4) |
---|---|
1# 2# $FreeBSD$ 3# 4# Make command line options: 5# -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 6# -DNO_CLEAN do not clean at all 7# -DDB_FROM_SRC use the user/group databases in src/etc instead of 8# the system database when installing. --- 104 unchanged lines hidden (view full) --- 113WANT_COMPILER_FREEBSD_VERSION!= \ 114 awk '$$2 == "FBSD_CC_VER" {printf("%d\n", $$3)}' \ 115 ${SRCDIR}/${WANT_COMPILER_FREEBSD_VERSION_FILE} || echo unknown 116WANT_COMPILER_VERSION_FILE= contrib/gcc/BASE-VER 117WANT_COMPILER_VERSION!= \ 118 awk -F. '{print $$1 * 10000 + $$2 * 100 + $$3}' \ 119 ${SRCDIR}/${WANT_COMPILER_VERSION_FILE} || echo unknown 120.endif | 1# 2# $FreeBSD$ 3# 4# Make command line options: 5# -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 6# -DNO_CLEAN do not clean at all 7# -DDB_FROM_SRC use the user/group databases in src/etc instead of 8# the system database when installing. --- 104 unchanged lines hidden (view full) --- 113WANT_COMPILER_FREEBSD_VERSION!= \ 114 awk '$$2 == "FBSD_CC_VER" {printf("%d\n", $$3)}' \ 115 ${SRCDIR}/${WANT_COMPILER_FREEBSD_VERSION_FILE} || echo unknown 116WANT_COMPILER_VERSION_FILE= contrib/gcc/BASE-VER 117WANT_COMPILER_VERSION!= \ 118 awk -F. '{print $$1 * 10000 + $$2 * 100 + $$3}' \ 119 ${SRCDIR}/${WANT_COMPILER_VERSION_FILE} || echo unknown 120.endif |
121.export WANT_COMPILER_FREEBSD_VERSION WANT_COMPILER_TYPE WANT_COMPILER_VERSION | 121.export WANT_COMPILER_FREEBSD_VERSION WANT_COMPILER_VERSION |
122.endif # !defined(WANT_COMPILER_FREEBSD_VERSION) 123# It needs to be the same revision as we would build for the bootstrap. 124# If the expected vs CC is different then we can't skip. 125# GCC cannot be used for cross-arch yet. For clang we pass -target later if 126# TARGET_ARCH!=MACHINE_ARCH. 127.if ${MK_SYSTEM_COMPILER} == "yes" && \ 128 (${MK_CLANG_BOOTSTRAP} == "yes" || ${MK_GCC_BOOTSTRAP} == "yes") && \ 129 !make(showconfig) && !make(xdev*) && \ --- 388 unchanged lines hidden (view full) --- 518 TOOLS_PREFIX=${WORLDTMP} \ 519 PATH=${BPATH}:${PATH} \ 520 WORLDTMP=${WORLDTMP} \ 521 MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" 522# need to keep this in sync with targets/pseudo/bootstrap-tools/Makefile 523BSARGS= DESTDIR= \ 524 OBJTOP='${WORLDTMP}/obj-tools' \ 525 OBJROOT='$${OBJTOP}/' \ | 122.endif # !defined(WANT_COMPILER_FREEBSD_VERSION) 123# It needs to be the same revision as we would build for the bootstrap. 124# If the expected vs CC is different then we can't skip. 125# GCC cannot be used for cross-arch yet. For clang we pass -target later if 126# TARGET_ARCH!=MACHINE_ARCH. 127.if ${MK_SYSTEM_COMPILER} == "yes" && \ 128 (${MK_CLANG_BOOTSTRAP} == "yes" || ${MK_GCC_BOOTSTRAP} == "yes") && \ 129 !make(showconfig) && !make(xdev*) && \ --- 388 unchanged lines hidden (view full) --- 518 TOOLS_PREFIX=${WORLDTMP} \ 519 PATH=${BPATH}:${PATH} \ 520 WORLDTMP=${WORLDTMP} \ 521 MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" 522# need to keep this in sync with targets/pseudo/bootstrap-tools/Makefile 523BSARGS= DESTDIR= \ 524 OBJTOP='${WORLDTMP}/obj-tools' \ 525 OBJROOT='$${OBJTOP}/' \ |
526 MAKEOBJDIRPREFIX= \ |
|
526 BOOTSTRAPPING=${OSRELDATE} \ 527 BWPHASE=${.TARGET:C,^_,,} \ 528 SSP_CFLAGS= \ | 527 BOOTSTRAPPING=${OSRELDATE} \ 528 BWPHASE=${.TARGET:C,^_,,} \ 529 SSP_CFLAGS= \ |
529 MK_COVERAGE=no MK_HTML=no NO_LINT=yes MK_MAN=no \ | 530 MK_HTML=no NO_LINT=yes MK_MAN=no \ |
530 -DNO_PIC MK_PROFILE=no -DNO_SHARED \ 531 -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \ 532 MK_CLANG_EXTRAS=no MK_CLANG_FULL=no \ 533 MK_LLDB=no MK_TESTS=no \ 534 MK_INCLUDES=yes 535 536BMAKE= \ 537 ${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ --- 5 unchanged lines hidden (view full) --- 543 TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 544 DESTDIR= \ 545 BOOTSTRAPPING=${OSRELDATE} \ 546 BWPHASE=${.TARGET:C,^_,,} \ 547 SSP_CFLAGS= \ 548 -DNO_LINT \ 549 -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \ 550 MK_CLANG_EXTRAS=no MK_CLANG_FULL=no \ | 531 -DNO_PIC MK_PROFILE=no -DNO_SHARED \ 532 -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \ 533 MK_CLANG_EXTRAS=no MK_CLANG_FULL=no \ 534 MK_LLDB=no MK_TESTS=no \ 535 MK_INCLUDES=yes 536 537BMAKE= \ 538 ${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ --- 5 unchanged lines hidden (view full) --- 544 TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 545 DESTDIR= \ 546 BOOTSTRAPPING=${OSRELDATE} \ 547 BWPHASE=${.TARGET:C,^_,,} \ 548 SSP_CFLAGS= \ 549 -DNO_LINT \ 550 -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \ 551 MK_CLANG_EXTRAS=no MK_CLANG_FULL=no \ |
551 MK_COVERAGE=no \ | |
552 MK_LLDB=no MK_TESTS=no 553 554# cross-tools stage 555# TOOLS_PREFIX set in BMAKE 556XMAKE= ${BMAKE} \ 557 TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 558 MK_GDB=no MK_LLD_IS_LD=${MK_LLD_BOOTSTRAP} MK_TESTS=no 559 560# kernel-tools stage 561KTMAKEENV= INSTALL="sh ${.CURDIR}/tools/install.sh" \ 562 PATH=${BPATH}:${PATH} \ 563 WORLDTMP=${WORLDTMP} 564KTMAKE= TOOLS_PREFIX=${WORLDTMP} \ 565 ${KTMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ 566 DESTDIR= \ 567 OBJTOP='${WORLDTMP}/obj-kernel-tools' \ 568 OBJROOT='$${OBJTOP}/' \ | 552 MK_LLDB=no MK_TESTS=no 553 554# cross-tools stage 555# TOOLS_PREFIX set in BMAKE 556XMAKE= ${BMAKE} \ 557 TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 558 MK_GDB=no MK_LLD_IS_LD=${MK_LLD_BOOTSTRAP} MK_TESTS=no 559 560# kernel-tools stage 561KTMAKEENV= INSTALL="sh ${.CURDIR}/tools/install.sh" \ 562 PATH=${BPATH}:${PATH} \ 563 WORLDTMP=${WORLDTMP} 564KTMAKE= TOOLS_PREFIX=${WORLDTMP} \ 565 ${KTMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ 566 DESTDIR= \ 567 OBJTOP='${WORLDTMP}/obj-kernel-tools' \ 568 OBJROOT='$${OBJTOP}/' \ |
569 MAKEOBJDIRPREFIX= \ |
|
569 BOOTSTRAPPING=${OSRELDATE} \ 570 SSP_CFLAGS= \ | 570 BOOTSTRAPPING=${OSRELDATE} \ 571 SSP_CFLAGS= \ |
571 MK_COVERAGE=no MK_HTML=no -DNO_LINT MK_MAN=no \ | 572 MK_HTML=no -DNO_LINT MK_MAN=no \ |
572 -DNO_PIC MK_PROFILE=no -DNO_SHARED \ 573 -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no 574 575# world stage 576WMAKEENV= ${CROSSENV} \ 577 INSTALL="sh ${.CURDIR}/tools/install.sh" \ 578 PATH=${TMPPATH} \ 579 SYSROOT=${WORLDTMP} --- 572 unchanged lines hidden (view full) --- 1152.for dist in ${EXTRA_DISTRIBUTIONS} 1153 -mkdir ${DESTDIR}/${DISTDIR}/${dist} 1154 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.root.dist \ 1155 -p ${DESTDIR}/${DISTDIR}/${dist} >/dev/null 1156 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 1157 -p ${DESTDIR}/${DISTDIR}/${dist}/usr >/dev/null 1158 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 1159 -p ${DESTDIR}/${DISTDIR}/${dist}/usr/include >/dev/null | 573 -DNO_PIC MK_PROFILE=no -DNO_SHARED \ 574 -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no 575 576# world stage 577WMAKEENV= ${CROSSENV} \ 578 INSTALL="sh ${.CURDIR}/tools/install.sh" \ 579 PATH=${TMPPATH} \ 580 SYSROOT=${WORLDTMP} --- 572 unchanged lines hidden (view full) --- 1153.for dist in ${EXTRA_DISTRIBUTIONS} 1154 -mkdir ${DESTDIR}/${DISTDIR}/${dist} 1155 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.root.dist \ 1156 -p ${DESTDIR}/${DISTDIR}/${dist} >/dev/null 1157 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 1158 -p ${DESTDIR}/${DISTDIR}/${dist}/usr >/dev/null 1159 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 1160 -p ${DESTDIR}/${DISTDIR}/${dist}/usr/include >/dev/null |
1160.if ${MK_COVERAGE} != "no" 1161 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.cov.dist \ 1162 -p ${DESTDIR}/${DISTDIR}/${dist}/usr/lib >/dev/null 1163.endif | |
1164.if ${MK_DEBUG_FILES} != "no" 1165 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.debug.dist \ 1166 -p ${DESTDIR}/${DISTDIR}/${dist}/usr/lib >/dev/null 1167.endif 1168.if defined(LIBCOMPAT) 1169 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.lib${libcompat}.dist \ 1170 -p ${DESTDIR}/${DISTDIR}/${dist}/usr >/dev/null 1171.if ${MK_DEBUG_FILES} != "no" --- 1102 unchanged lines hidden (view full) --- 2274# 2275# static libgcc.a prerequisite for shared libc 2276# 2277_prereq_libs= lib/libcompiler_rt 2278.if ${MK_SSP} != "no" 2279_prereq_libs+= gnu/lib/libssp/libssp_nonshared 2280.endif 2281 | 1161.if ${MK_DEBUG_FILES} != "no" 1162 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.debug.dist \ 1163 -p ${DESTDIR}/${DISTDIR}/${dist}/usr/lib >/dev/null 1164.endif 1165.if defined(LIBCOMPAT) 1166 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.lib${libcompat}.dist \ 1167 -p ${DESTDIR}/${DISTDIR}/${dist}/usr >/dev/null 1168.if ${MK_DEBUG_FILES} != "no" --- 1102 unchanged lines hidden (view full) --- 2271# 2272# static libgcc.a prerequisite for shared libc 2273# 2274_prereq_libs= lib/libcompiler_rt 2275.if ${MK_SSP} != "no" 2276_prereq_libs+= gnu/lib/libssp/libssp_nonshared 2277.endif 2278 |
2282# 2283# The coverage libraries must be built for the target prior to ${_startup_libs} 2284# for world to have runtime coverage instrumentation. 2285# 2286.if ${MK_COVERAGE} != "no" 2287_prereq_libs+= lib/libclang_rt/profile 2288.endif 2289 | |
2290# These dependencies are not automatically generated: 2291# 2292# gnu/lib/csu, gnu/lib/libgcc, lib/csu and lib/libc must be built before 2293# all shared libraries for ELF. 2294# 2295_startup_libs= gnu/lib/csu 2296_startup_libs+= lib/csu 2297_startup_libs+= lib/libcompiler_rt --- 217 unchanged lines hidden (view full) --- 2515.for _lib in ${_prereq_libs} 2516${_lib}__PL: .PHONY .MAKE 2517.if exists(${.CURDIR}/${_lib}) 2518 ${_+_}@${ECHODIR} "===> ${_lib} (obj,all,install)"; \ 2519 cd ${.CURDIR}/${_lib}; \ 2520 if [ -z "${NO_OBJWALK}" ]; then ${MAKE} MK_TESTS=no DIRPRFX=${_lib}/ obj; fi; \ 2521 ${MAKE} MK_TESTS=no MK_PROFILE=no -DNO_PIC \ 2522 DIRPRFX=${_lib}/ all; \ | 2279# These dependencies are not automatically generated: 2280# 2281# gnu/lib/csu, gnu/lib/libgcc, lib/csu and lib/libc must be built before 2282# all shared libraries for ELF. 2283# 2284_startup_libs= gnu/lib/csu 2285_startup_libs+= lib/csu 2286_startup_libs+= lib/libcompiler_rt --- 217 unchanged lines hidden (view full) --- 2504.for _lib in ${_prereq_libs} 2505${_lib}__PL: .PHONY .MAKE 2506.if exists(${.CURDIR}/${_lib}) 2507 ${_+_}@${ECHODIR} "===> ${_lib} (obj,all,install)"; \ 2508 cd ${.CURDIR}/${_lib}; \ 2509 if [ -z "${NO_OBJWALK}" ]; then ${MAKE} MK_TESTS=no DIRPRFX=${_lib}/ obj; fi; \ 2510 ${MAKE} MK_TESTS=no MK_PROFILE=no -DNO_PIC \ 2511 DIRPRFX=${_lib}/ all; \ |
2523 ${MAKE} MK_COVERAGE=no MK_TESTS=no MK_PROFILE=no -DNO_PIC \ | 2512 ${MAKE} MK_TESTS=no MK_PROFILE=no -DNO_PIC \ |
2524 DIRPRFX=${_lib}/ install 2525.endif 2526.endfor 2527 2528.for _lib in ${_startup_libs} ${_prebuild_libs} ${_generic_libs} 2529${_lib}__L: .PHONY .MAKE 2530.if exists(${.CURDIR}/${_lib}) 2531 ${_+_}@${ECHODIR} "===> ${_lib} (obj,all,install)"; \ 2532 cd ${.CURDIR}/${_lib}; \ 2533 if [ -z "${NO_OBJWALK}" ]; then ${MAKE} MK_TESTS=no DIRPRFX=${_lib}/ obj; fi; \ 2534 ${MAKE} MK_TESTS=no DIRPRFX=${_lib}/ all; \ | 2513 DIRPRFX=${_lib}/ install 2514.endif 2515.endfor 2516 2517.for _lib in ${_startup_libs} ${_prebuild_libs} ${_generic_libs} 2518${_lib}__L: .PHONY .MAKE 2519.if exists(${.CURDIR}/${_lib}) 2520 ${_+_}@${ECHODIR} "===> ${_lib} (obj,all,install)"; \ 2521 cd ${.CURDIR}/${_lib}; \ 2522 if [ -z "${NO_OBJWALK}" ]; then ${MAKE} MK_TESTS=no DIRPRFX=${_lib}/ obj; fi; \ 2523 ${MAKE} MK_TESTS=no DIRPRFX=${_lib}/ all; \ |
2535 ${MAKE} MK_COVERAGE=no MK_TESTS=no DIRPRFX=${_lib}/ install | 2524 ${MAKE} MK_TESTS=no DIRPRFX=${_lib}/ install |
2536.endif 2537.endfor 2538 2539_prereq_libs: ${_prereq_libs:S/$/__PL/} 2540_startup_libs: ${_startup_libs:S/$/__L/} 2541_prebuild_libs: ${_prebuild_libs:S/$/__L/} 2542_generic_libs: ${_generic_libs:S/$/__L/} 2543 --- 248 unchanged lines hidden (view full) --- 2792.endif 2793 2794.if ${TARGET} == ${MACHINE} && ${TARGET_ARCH} == ${MACHINE_ARCH} 2795XDEV_CPUTYPE?=${CPUTYPE} 2796.else 2797XDEV_CPUTYPE?=${TARGET_CPUTYPE} 2798.endif 2799 | 2525.endif 2526.endfor 2527 2528_prereq_libs: ${_prereq_libs:S/$/__PL/} 2529_startup_libs: ${_startup_libs:S/$/__L/} 2530_prebuild_libs: ${_prebuild_libs:S/$/__L/} 2531_generic_libs: ${_generic_libs:S/$/__L/} 2532 --- 248 unchanged lines hidden (view full) --- 2781.endif 2782 2783.if ${TARGET} == ${MACHINE} && ${TARGET_ARCH} == ${MACHINE_ARCH} 2784XDEV_CPUTYPE?=${CPUTYPE} 2785.else 2786XDEV_CPUTYPE?=${TARGET_CPUTYPE} 2787.endif 2788 |
2800NOFUN= MK_COVERAGE=no -DNO_FSCHG MK_HTML=no -DNO_LINT \ | 2789NOFUN=-DNO_FSCHG MK_HTML=no -DNO_LINT \ |
2801 MK_MAN=no MK_NLS=no MK_PROFILE=no \ 2802 MK_KERBEROS=no MK_RESCUE=no MK_TESTS=no MK_WARNS=no \ 2803 TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 2804 CPUTYPE=${XDEV_CPUTYPE} 2805 2806XDDIR=${TARGET_ARCH}-freebsd 2807XDTP?=/usr/${XDDIR} 2808.if ${XDTP:N/*} --- 139 unchanged lines hidden --- | 2790 MK_MAN=no MK_NLS=no MK_PROFILE=no \ 2791 MK_KERBEROS=no MK_RESCUE=no MK_TESTS=no MK_WARNS=no \ 2792 TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 2793 CPUTYPE=${XDEV_CPUTYPE} 2794 2795XDDIR=${TARGET_ARCH}-freebsd 2796XDTP?=/usr/${XDDIR} 2797.if ${XDTP:N/*} --- 139 unchanged lines hidden --- |