freebsd-dev/gnu/usr.bin/binutils/ld/Makefile.alpha
Marcel Moolenaar ecc4dcbd82 s/MACHINE_ARCH/TARGET_ARCH/g
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.
1999-12-17 15:50:45 +00:00

31 lines
1.1 KiB
Makefile

#
# $FreeBSD$
#
.if ${TARGET_ARCH} == "alpha"
HOST= alpha-unknown-freebsdelf
CFLAGS+= -DDEFAULT_EMULATION=\"elf64alpha\"
CFLAGS+= -DTARGET=\"alpha-unknown-freebsdelf\"
_alpha_path= \"/usr/lib\"
.else
_alpha_path= \"/usr/cross/alpha-freebsd/usr/lib\"
.endif
EMS+= ld_elf64alpha_emulation
LDSCRIPTS+= elf64alpha.x elf64alpha.xbn elf64alpha.xn elf64alpha.xr \
elf64alpha.xs elf64alpha.xu alpha.x alpha.xbn \
alpha.xn alpha.xr alpha.xu
SRCS+= eelf64alpha.c ealpha.c
CLEANFILES+= eelf64alpha.c ealpha.c
eelf64alpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh emultempl/stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
${HOST} alpha-unknown-freebsdelf alpha-unknown-freebsdelf \
elf64alpha "" elf64alpha alpha-unknown-freebsdelf
ealpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh emultempl/stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
${HOST} alpha-unknown-freebsdelf alpha-unknown-freebsdelf \
elf64alpha "" alpha alpha-unknown-freebsd