1999-11-06 22:52:33 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
1999-12-17 15:50:45 +00:00
|
|
|
.if ${TARGET_ARCH} == "sparc"
|
1999-11-07 06:01:35 +00:00
|
|
|
HOST= sparc-unknown-freebsd
|
1999-11-06 22:52:33 +00:00
|
|
|
CFLAGS+= -DDEFAULT_EMULATION=\"elf32_sparc\"
|
1999-11-07 06:01:35 +00:00
|
|
|
CFLAGS+= -DTARGET=\"sparc-unknown-freebsd\"
|
1999-11-06 22:52:33 +00:00
|
|
|
_sparc_path= \"/usr/lib\"
|
|
|
|
.else
|
1999-11-07 06:01:35 +00:00
|
|
|
_sparc_path= \"/usr/cross/sparc-freebsd/usr/lib\"
|
1999-11-06 22:52:33 +00:00
|
|
|
.endif
|
|
|
|
EMS+= ld_elf32_sparc_emulation
|
|
|
|
LDSCRIPTS+= elf32_sparc.x elf32_sparc.xbn elf32_sparc.xn elf32_sparc.xr \
|
|
|
|
elf32_sparc.xs elf32_sparc.xu
|
|
|
|
SRCS+= eelf32_sparc.c
|
|
|
|
CLEANFILES+= eelf32_sparc.c
|
|
|
|
|
|
|
|
eelf32_sparc.c: emulparams/elf32_sparc.sh emultempl/elf32.em \
|
2000-11-25 13:56:28 +00:00
|
|
|
scripttempl/elf.sc genscripts.sh stringify.sed
|
2000-04-02 20:23:58 +00:00
|
|
|
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_sparc_path} \
|
1999-11-07 06:01:35 +00:00
|
|
|
${HOST} sparc-unknown-freebsd sparc-unknown-freebsd \
|
|
|
|
elf32_sparc "" elf32_sparc sparc-unknown-freebsd
|
1999-11-06 22:52:33 +00:00
|
|
|
|