Changeset View
Changeset View
Standalone View
Standalone View
share/mk/src.sys.env.mk
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
.if ${MAKESYSPATH:Uno:M*.../*} != "" | .if ${MAKESYSPATH:Uno:M*.../*} != "" | ||||
MAKESYSPATH:= ${MAKESYSPATH:S,.../share/mk,${.PARSEDIR:tA},} | MAKESYSPATH:= ${MAKESYSPATH:S,.../share/mk,${.PARSEDIR:tA},} | ||||
.export MAKESYSPATH | .export MAKESYSPATH | ||||
.elif empty(MAKESYSPATH) | .elif empty(MAKESYSPATH) | ||||
MAKESYSPATH:= ${.PARSEDIR:tA} | MAKESYSPATH:= ${.PARSEDIR:tA} | ||||
.export MAKESYSPATH | .export MAKESYSPATH | ||||
.endif | .endif | ||||
# On Linux/MacOS we change MACHINE will be x86_64 by default so we need to | |||||
bdrewery: A comment that this is for cross-os builds would help not cause this to be trimmed by accident. | |||||
# change it to amd64 to allow building on those systems. | |||||
.if ${MACHINE} == "x86_64" | |||||
MACHINE:=amd64 | |||||
MACHINE_ARCH:=amd64 | |||||
.export MACHINE | |||||
.export MACHINE_ARCH | |||||
.endif | |||||
.if ${RELDIR:U} == "." && ${.MAKE.LEVEL} == 0 | .if ${RELDIR:U} == "." && ${.MAKE.LEVEL} == 0 | ||||
.sinclude "${.CURDIR}/Makefile.sys.inc" | .sinclude "${.CURDIR}/Makefile.sys.inc" | ||||
.endif | .endif | ||||
.include <src.sys.obj.mk> | .include <src.sys.obj.mk> |
A comment that this is for cross-os builds would help not cause this to be trimmed by accident.