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
|
|
|
#
|
|
|
|
|
1998-05-04 21:29:54 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
1998-03-12 02:55:43 +00:00
|
|
|
HOST= i386-unknown-freebsdelf
|
1998-05-04 21:29:54 +00:00
|
|
|
CFLAGS+= -DDEFAULT_EMULATION=\"elf_i386\"
|
|
|
|
CFLAGS+= -DTARGET=\"i386-unknown-freebsdelf\"
|
|
|
|
.endif
|
|
|
|
EMS+= ld_elf_i386_emulation
|
|
|
|
LDSCRIPTS+= elf_i386.x elf_i386.xbn elf_i386.xn elf_i386.xr \
|
1998-03-30 02:21:27 +00:00
|
|
|
elf_i386.xs elf_i386.xu
|
|
|
|
SRCS+= eelf_i386.c
|
|
|
|
CLEANFILES+= eelf_i386.c
|
1998-03-12 02:55:43 +00:00
|
|
|
|
|
|
|
eelf_i386.c: emulparams/elf_i386.sh emultempl/elf32.em \
|
|
|
|
scripttempl/elf.sc genscripts.sh emultempl/stringify.sed
|
|
|
|
env LIB_PATH="/usr/lib" \
|
|
|
|
sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \
|
1998-05-04 21:29:54 +00:00
|
|
|
${HOST} i386-unknown-freebsdelf i386-unknown-freebsdelf \
|
|
|
|
elf_i386 "" elf_i386 i386-unknown-freebsdelf
|