ecc4dcbd82
The target machine is represented by TARGET_ARCH. MACHINE_ARCH always represents the host machine. When TARGET_ARCH is not defined, it is assumed to be equal to MACHINE_ARCH. This means that we're building a native toolset by default. We're creating cross-compilation tools when MACHINE_ARCH != TARGET_ARCH. TARGET_ARCH is defined when building binutils as part of the bootstrap build and is set to reflect the architecture we're currently cross- building. With this change binutils is ready for cross-building.
14 lines
220 B
Makefile
14 lines
220 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
SRCS+= coff-rs6000.c \
|
|
cofflink.c \
|
|
cpu-rs6000.c \
|
|
xcofflink.c
|
|
VECS+= rs6000coff_vec
|
|
.if ${TARGET_ARCH} == "rs6000"
|
|
CFLAGS+= -DDEFAULT_VECTOR=rs6000coff_vec
|
|
.endif
|
|
CFLAGS+= -DHAVE_rs6000coff_vec
|