25 lines
767 B
Makefile
25 lines
767 B
Makefile
|
#
|
||
|
# $FreeBSD$
|
||
|
#
|
||
|
|
||
|
.if ${MACHINE_ARCH} == "sparc"
|
||
|
HOST= sparc-unknown-freebsdelf
|
||
|
CFLAGS+= -DDEFAULT_EMULATION=\"elf32_sparc\"
|
||
|
CFLAGS+= -DTARGET=\"sparc-unknown-freebsdelf\"
|
||
|
_sparc_path= \"/usr/lib\"
|
||
|
.else
|
||
|
_sparc_path= \"/usr/cross/sparc-freebsdelf/usr/lib\"
|
||
|
.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 \
|
||
|
scripttempl/elf.sc genscripts.sh emultempl/stringify.sed
|
||
|
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld ${_sparc_path} \
|
||
|
${HOST} sparc-unknown-freebsdelf sparc-unknown-freebsdelf \
|
||
|
elf32_sparc "" elf32_sparc sparc-unknown-freebsdelf
|
||
|
|