1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-12 02:55:43 +00:00
|
|
|
|
2001-10-14 02:12:40 +00:00
|
|
|
TARGET_TUPLE= alpha-unknown-freebsd
|
|
|
|
|
2001-10-14 01:57:19 +00:00
|
|
|
.if ${TARGET_ARCH} == "alpha"
|
2001-10-14 02:12:40 +00:00
|
|
|
HOST= ${TARGET_TUPLE}
|
2001-10-14 01:57:19 +00:00
|
|
|
CFLAGS+= -DDEFAULT_EMULATION=\"elf64alpha\"
|
2001-10-14 02:12:40 +00:00
|
|
|
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
|
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
|
2001-10-14 01:57:19 +00:00
|
|
|
SRCS+= eelf64alpha.c ealpha.c
|
1998-03-12 02:55:43 +00:00
|
|
|
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-10-14 02:12:40 +00:00
|
|
|
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
|
|
|
|
elf64alpha "" elf64alpha ${TARGET_TUPLE}
|
1998-03-12 02:55:43 +00:00
|
|
|
|
2001-10-14 01:57:19 +00:00
|
|
|
ealpha.c: emulparams/elf64alpha.sh emultempl/elf32.em scripttempl/elf.sc \
|
|
|
|
genscripts.sh stringify.sed
|
1999-11-06 22:44:32 +00:00
|
|
|
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \
|
2001-10-14 02:12:40 +00:00
|
|
|
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
|
|
|
|
elf64alpha "" alpha ${TARGET_TUPLE}
|