Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | |||||
NO_CLEAN= ${NOCLEAN} | NO_CLEAN= ${NOCLEAN} | ||||
.endif | .endif | ||||
.if defined(NO_CLEANDIR) | .if defined(NO_CLEANDIR) | ||||
CLEANDIR= clean cleandepend | CLEANDIR= clean cleandepend | ||||
.else | .else | ||||
CLEANDIR= cleandir | CLEANDIR= cleandir | ||||
.endif | .endif | ||||
# FAST_DEPEND can skip depend tree-walks. | # Depend walks are no longer needed with the "FAST_DEPEND" changes. | ||||
.if ${MK_FAST_DEPEND} == "yes" | |||||
NO_DEPEND= t | NO_DEPEND= t | ||||
NO_KERNELDEPEND=t | NO_KERNELDEPEND=t | ||||
.endif | |||||
# Ensure shell checks later have a value. | # Ensure shell checks later have a value. | ||||
.if defined(NO_DEPEND) | .if defined(NO_DEPEND) | ||||
NO_DEPEND= t | NO_DEPEND= t | ||||
.endif | .endif | ||||
emaste: This is now redundant. | |||||
bdreweryAuthorUnsubmitted Not Done Inline ActionsAh right, I intended to remove all of the 'make depend' in here too. Thanks. bdrewery: Ah right, I intended to remove all of the 'make depend' in here too. Thanks. | |||||
LOCAL_TOOL_DIRS?= | LOCAL_TOOL_DIRS?= | ||||
PACKAGEDIR?= ${DESTDIR}/${DISTDIR} | PACKAGEDIR?= ${DESTDIR}/${DISTDIR} | ||||
.if empty(SHELL:M*csh*) | .if empty(SHELL:M*csh*) | ||||
BUILDENV_SHELL?=${SHELL} | BUILDENV_SHELL?=${SHELL} | ||||
.else | .else | ||||
BUILDENV_SHELL?=/bin/sh | BUILDENV_SHELL?=/bin/sh | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | |||||
.if defined(CROSS_BINUTILS_PREFIX) && \ | .if defined(CROSS_BINUTILS_PREFIX) && \ | ||||
exists(${CROSS_BINUTILS_PREFIX}${${BINUTIL}}) | exists(${CROSS_BINUTILS_PREFIX}${${BINUTIL}}) | ||||
X${BINUTIL}?= ${CROSS_BINUTILS_PREFIX}${${BINUTIL}} | X${BINUTIL}?= ${CROSS_BINUTILS_PREFIX}${${BINUTIL}} | ||||
.else | .else | ||||
X${BINUTIL}?= ${${BINUTIL}} | X${BINUTIL}?= ${${BINUTIL}} | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
CROSSENV+= CC="${XCC} ${XCFLAGS}" CXX="${XCXX} ${XCFLAGS} ${XCXXFLAGS}" \ | CROSSENV+= CC="${XCC} ${XCFLAGS}" CXX="${XCXX} ${XCFLAGS} ${XCXXFLAGS}" \ | ||||
DEPFLAGS="${DEPFLAGS}" \ | |||||
CPP="${XCPP} ${XCFLAGS}" \ | CPP="${XCPP} ${XCFLAGS}" \ | ||||
AS="${XAS}" AR="${XAR}" LD="${XLD}" NM=${XNM} \ | AS="${XAS}" AR="${XAR}" LD="${XLD}" NM=${XNM} \ | ||||
OBJDUMP=${XOBJDUMP} OBJCOPY="${XOBJCOPY}" \ | OBJDUMP=${XOBJDUMP} OBJCOPY="${XOBJCOPY}" \ | ||||
RANLIB=${XRANLIB} STRINGS=${XSTRINGS} \ | RANLIB=${XRANLIB} STRINGS=${XSTRINGS} \ | ||||
SIZE="${XSIZE}" | SIZE="${XSIZE}" | ||||
.if defined(CROSS_BINUTILS_PREFIX) && exists(${CROSS_BINUTILS_PREFIX}) | .if defined(CROSS_BINUTILS_PREFIX) && exists(${CROSS_BINUTILS_PREFIX}) | ||||
# In the case of xdev-build tools, CROSS_BINUTILS_PREFIX won't be a | # In the case of xdev-build tools, CROSS_BINUTILS_PREFIX won't be a | ||||
Show All 21 Lines | |||||
# you must set X_COMPILER_TYPE=gcc to build with libc++, but then -target | # you must set X_COMPILER_TYPE=gcc to build with libc++, but then -target | ||||
# won't be used. | # won't be used. | ||||
.if defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc | .if defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc | ||||
# GCC requires -isystem when using a cross-compiler. | # GCC requires -isystem when using a cross-compiler. | ||||
XCFLAGS+= -isystem ${WORLDTMP}/usr/include | XCFLAGS+= -isystem ${WORLDTMP}/usr/include | ||||
# Force using libc++ for external GCC. | # Force using libc++ for external GCC. | ||||
XCXXFLAGS+= -isystem ${WORLDTMP}/usr/include/c++/v1 -std=c++11 \ | XCXXFLAGS+= -isystem ${WORLDTMP}/usr/include/c++/v1 -std=c++11 \ | ||||
-nostdinc++ -L${WORLDTMP}/../lib/libc++ | -nostdinc++ -L${WORLDTMP}/../lib/libc++ | ||||
# XXX: DEPFLAGS is a workaround for not properly passing CXXFLAGS to sub-makes | |||||
# due to CXX="${XCXX} ${XCXXFLAGS}". bsd.dep.mk does use CXXFLAGS when | |||||
# building C++ files so this can come out if passing CXXFLAGS down is fixed. | |||||
DEPFLAGS+= -I${WORLDTMP}/usr/include/c++/v1 | |||||
.elif ${TARGET_ARCH} != ${MACHINE_ARCH} | .elif ${TARGET_ARCH} != ${MACHINE_ARCH} | ||||
TARGET_ABI?= unknown | TARGET_ABI?= unknown | ||||
TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd11.0 | TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd11.0 | ||||
XCFLAGS+= -target ${TARGET_TRIPLE} | XCFLAGS+= -target ${TARGET_TRIPLE} | ||||
.endif | .endif | ||||
XCFLAGS+= --sysroot=${WORLDTMP} | XCFLAGS+= --sysroot=${WORLDTMP} | ||||
.else | .else | ||||
.endif # ${XCC:M/*} || ${MK_CROSS_COMPILER} == "no" | .endif # ${XCC:M/*} || ${MK_CROSS_COMPILER} == "no" | ||||
▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | _depend: | ||||
@echo | @echo | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
@echo ">>> stage 4.3: make dependencies" | @echo ">>> stage 4.3: make dependencies" | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
${_+_}cd ${.CURDIR}; ${WMAKE} depend | ${_+_}cd ${.CURDIR}; ${WMAKE} depend | ||||
everything: | everything: | ||||
@echo | @echo | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
@echo ">>> stage 4.4: building everything" | @echo ">>> stage 4.4: building everything" | ||||
Not Done Inline ActionsThis will break some of my finger memory :-) emaste: This will break some of my finger memory :-) | |||||
Not Done Inline ActionsAlthough I do have searched build logs with /4\.4/, the comment was mostly in jest. Having a missing 4.3 is probably more confusing. emaste: Although I do have searched build logs with `/4\.4/`, the comment was mostly in jest. Having a… | |||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
${_+_}cd ${.CURDIR}; _PARALLEL_SUBDIR_OK=1 ${WMAKE} all | ${_+_}cd ${.CURDIR}; _PARALLEL_SUBDIR_OK=1 ${WMAKE} all | ||||
WMAKE_TGTS= | WMAKE_TGTS= | ||||
WMAKE_TGTS+= _worldtmp _legacy | WMAKE_TGTS+= _worldtmp _legacy | ||||
.if empty(SUBDIR_OVERRIDE) | .if empty(SUBDIR_OVERRIDE) | ||||
WMAKE_TGTS+= _bootstrap-tools | WMAKE_TGTS+= _bootstrap-tools | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 324 Lines • ▼ Show 20 Lines | ${_+_}cd ${.CURDIR}; ${CROSSENV} PATH=${TMPPATH} \ | ||||
METALOG=${METALOG} MK_TESTS=no installconfig | METALOG=${METALOG} MK_TESTS=no installconfig | ||||
.endif | .endif | ||||
# | # | ||||
# buildkernel and installkernel | # buildkernel and installkernel | ||||
# | # | ||||
# Which kernels to build and/or install is specified by setting | # Which kernels to build and/or install is specified by setting | ||||
# KERNCONF. If not defined a GENERIC kernel is built/installed. | # KERNCONF. If not defined a GENERIC kernel is built/installed. | ||||
# Only the existing (depending TARGET) config files are used | # Only the existing (depending TARGET) config files are used | ||||
Not Done Inline ActionsA word is missing (probably "on"), but "depending" is likely not the best choice of word here, either. The wording is so vague it is hard to suggest something clearer. Something about how TARGET affects which config files are used, at a guess. wblock: A word is missing (probably "on"), but "depending" is likely not the best choice of word here… | |||||
Not Done Inline ActionsIndeed, but this predates @bdrewery's changes by a decade and a half or so. This should be improved in a separate commit. emaste: Indeed, but this predates @bdrewery's changes by a decade and a half or so. This should be… | |||||
# for building kernels and only the first of these is designated | # for building kernels and only the first of these is designated | ||||
# as the one being installed. | # as the one being installed. | ||||
# | # | ||||
# Note that we have to use TARGET instead of TARGET_ARCH when | # Note that we have to use TARGET instead of TARGET_ARCH when | ||||
# we're in kernel-land. Since only TARGET_ARCH is (expected) to | # we're in kernel-land. Since only TARGET_ARCH is (expected) to | ||||
# be set to cross-build, we have to make sure TARGET is set | # be set to cross-build, we have to make sure TARGET is set | ||||
# properly. | # properly. | ||||
▲ Show 20 Lines • Show All 1,335 Lines • Show Last 20 Lines |
This is now redundant.