Changeset View
Changeset View
Standalone View
Standalone View
Makefile
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
# Otherwise, default to current machine type and architecture. | # Otherwise, default to current machine type and architecture. | ||||
_TARGET?= ${MACHINE} | _TARGET?= ${MACHINE} | ||||
_TARGET_ARCH?= ${MACHINE_ARCH} | _TARGET_ARCH?= ${MACHINE_ARCH} | ||||
.if make(native-xtools*) | .if make(native-xtools*) | ||||
NXB_TARGET:= ${_TARGET} | NXB_TARGET:= ${_TARGET} | ||||
NXB_TARGET_ARCH:= ${_TARGET_ARCH} | NXB_TARGET_ARCH:= ${_TARGET_ARCH} | ||||
_TARGET= ${MACHINE} | _TARGET!= tools/build/build_machine.sh | ||||
_TARGET_ARCH= ${MACHINE_ARCH} | _TARGET_ARCH!= tools/build/build_machine_arch.sh | ||||
_MAKE+= NXB_TARGET=${NXB_TARGET} \ | _MAKE+= NXB_TARGET=${NXB_TARGET} \ | ||||
NXB_TARGET_ARCH=${NXB_TARGET_ARCH} | NXB_TARGET_ARCH=${NXB_TARGET_ARCH} | ||||
.endif | .endif | ||||
.if make(print-dir) | .if make(print-dir) | ||||
.SILENT: | .SILENT: | ||||
.endif | .endif | ||||
sjg: quotes are incorrect here | |||||
_assert_target: .PHONY .MAKE | _assert_target: .PHONY .MAKE | ||||
.for _tgt in ${XTGTS} | .for _tgt in ${XTGTS} | ||||
Not Done Inline ActionsThis shouldn't be needed with the share/mk/src.sys.env.mk changes since MACHINE will already be amd64 by the time this file is parsed. bdrewery: This shouldn't be needed with the share/mk/src.sys.env.mk changes since MACHINE will already be… | |||||
.if make(${_tgt}) | .if make(${_tgt}) | ||||
@echo "*** Error: Both TARGET and TARGET_ARCH must be defined for \"${_tgt}\" target" | @echo "*** Error: Both TARGET and TARGET_ARCH must be defined for \"${_tgt}\" target" | ||||
@false | @false | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
# | # | ||||
# Make sure we have an up-to-date make(1). Only world and buildworld | # Make sure we have an up-to-date make(1). Only world and buildworld | ||||
▲ Show 20 Lines • Show All 343 Lines • Show Last 20 Lines |
quotes are incorrect here