freebsd-dev/gnu/usr.bin/binutils/ld/Makefile.alpha
John Birrell 08d64a6b65 Use the simplified genscripts.sh and set the cross-compiled library
directory to /usr/cross/${MACHINE_ARCH}-freebsdelf/usr/lib so that
the cross tools behave the same way that the host versions do. When
building cross tools, Cygnus doesn't set the default library directory.
This doesn't suit FreeBSD IMHO.
1999-11-06 22:44:32 +00:00

31 lines
1.1 KiB
Makefile

#
# $FreeBSD$
#
.if ${MACHINE_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-freebsdelf/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