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.
17 lines
430 B
Makefile
17 lines
430 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
SRCS+= coff-alpha.c cpu-alpha.c ecoff.c ecofflink.c elf64-alpha.c \
|
|
elf64-target.h elf64.c elflink.c
|
|
VECS+= bfd_elf64_alpha_vec ecoffalpha_little_vec
|
|
.if ${TARGET_ARCH} == "alpha"
|
|
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf64_alpha_vec
|
|
.endif
|
|
CFLAGS+= -DHAVE_bfd_elf64_alpha_vec
|
|
CFLAGS+= -DHAVE_ecoffalpha_little_vec
|
|
CLEANFILES+= elf64-target.h
|
|
|
|
elf64-target.h: elfxx-target.h
|
|
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
|