summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-07-01 17:12:55 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-07-01 17:12:55 +0000
commit3e1521419b34ad85cee8ac6366816f286fb0c8c2 (patch)
tree92fbf89ec54938ef12af052766ee00529a218847 /gnu/usr.bin/binutils
parent4813f72a9bdc644d61343833a072cbfeff414b73 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile.amd6414
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile.amd64 b/gnu/usr.bin/binutils/ld/Makefile.amd64
index c7a75f49666c..8291a2244d4b 100644
--- a/gnu/usr.bin/binutils/ld/Makefile.amd64
+++ b/gnu/usr.bin/binutils/ld/Makefile.amd64
@@ -18,3 +18,17 @@ e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em scr
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_x86_64_path} \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"${NATIVE_EMULATION}" "" ${NATIVE_EMULATION} "${TARGET_TUPLE}"
+
+X86_EMULATION= elf_i386_fbsd
+_i386_path= \"${TOOLS_PREFIX}/usr/lib/i386\"
+EMS+= ${X86_EMULATION}
+LDSCRIPTS+= ${X86_EMULATION}.x ${X86_EMULATION}.xbn ${X86_EMULATION}.xn ${X86_EMULATION}.xr \
+ ${X86_EMULATION}.xs ${X86_EMULATION}.xu ${X86_EMULATION}.xc ${X86_EMULATION}.xsc
+SRCS+= e${X86_EMULATION}.c
+CLEANFILES+= e${X86_EMULATION}.c
+
+e${X86_EMULATION}.c: emulparams/${X86_EMULATION}.sh emultempl/elf32.em scripttempl/elf.sc \
+ genscripts.sh stringify.sed
+ sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_i386_path} \
+ ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+ "${X86_EMULATION}" "" ${X86_EMULATION} "${TARGET_TUPLE}"