1998-03-12 02:55:43 +00:00
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-12 02:55:43 +00:00
|
|
|
#
|
|
|
|
|
1999-12-17 15:50:45 +00:00
|
|
|
.if ${TARGET_ARCH} == "alpha"
|
2001-02-21 11:43:35 +00:00
|
|
|
HOST= alpha-unknown-freebsd
|
1998-05-04 21:29:54 +00:00
|
|
|
CFLAGS+= -DDEFAULT_EMULATION=\"elf64alpha\"
|
2001-02-21 11:43:35 +00:00
|
|
|
CFLAGS+= -DTARGET=\"alpha-unknown-freebsd\"
|
1999-11-06 22:44:32 +00:00
|
|
|
_alpha_path= \"/usr/lib\"
|
|
|
|
.else
|
1999-11-07 06:01:35 +00:00
|
|
|
_alpha_path= \"/usr/cross/alpha-freebsd/usr/lib\"
|
1998-05-04 21:29:54 +00:00
|
|
|
.endif
|
|
|
|
EMS+= ld_elf64alpha_emulation
|
|
|
|
LDSCRIPTS+= elf64alpha.x elf64alpha.xbn elf64alpha.xn elf64alpha.xr \
|
1998-03-12 02:55:43 +00:00
|
|
|
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 \
|
2000-05-22 08:09:42 +00:00
|
|
|
scripttempl/elf.sc genscripts.sh stringify.sed
|
1999-11-06 22:44:32 +00:00
|
|
|
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
|
2001-02-21 11:43:35 +00:00
|
|
|
${HOST} alpha-unknown-freebsd alpha-unknown-freebsd \
|
|
|
|
elf64alpha "" elf64alpha alpha-unknown-freebsd
|
1998-03-12 02:55:43 +00:00
|
|
|
|
|
|
|
ealpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \
|
2000-11-25 13:56:28 +00:00
|
|
|
scripttempl/elf.sc genscripts.sh stringify.sed
|
1999-11-06 22:44:32 +00:00
|
|
|
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
|
2001-02-21 11:43:35 +00:00
|
|
|
${HOST} alpha-unknown-freebsd alpha-unknown-freebsd \
|
1998-05-04 21:29:54 +00:00
|
|
|
elf64alpha "" alpha alpha-unknown-freebsd
|