aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-10-01 09:36:43 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-10-01 09:36:43 +0000
commit5a2b666ce590a56f147e167aa07684af2d6b854a (patch)
treea5914e0a02f1f78fbcece53ec11bfddc64f76781 /gnu/usr.bin/binutils
parentf94594b37a145b9b3e9ff31af2cd1dc3de8aa4d4 (diff)
parentb60a118dd88613da59c373d9a6eff5f8d35b53ea (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile10
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile.amd641
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile.mips1
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile.powerpc641
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile.sparc641
-rw-r--r--gnu/usr.bin/binutils/libbfd/Makefile.i3862
6 files changed, 11 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index d0946f338f2e..e15fdae1892e 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
+ELF_SCR_EXT= x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw
.include "../Makefile.inc0"
.include <src.opts.mk>
@@ -45,11 +46,14 @@ LDADD= ${DPADD}
CLEANDIRS+= ldscripts
CLEANFILES+= ldemul-list.h stringify.sed
+FILES= ${LDSCRIPTS:S|^|ldscripts/|}
+FILESDIR= ${SCRIPTDIR}
+
HOST= ${TARGET_TUPLE}
LIBSEARCHPATH= \"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
-ELF_SCR_EXT= x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= ${NATIVE_EMULATION}.${ext}
+ldscripts/${NATIVE_EMULATION}.${ext}: e${NATIVE_EMULATION}.c
.endfor
EMXFR=
@@ -66,10 +70,6 @@ ldemul-list.h:
stringify.sed:
ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET}
-afterinstall:
- ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}
-
GENDIRDEPS_FILTER.host+= Nusr.bin/yacc
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/binutils/ld/Makefile.amd64 b/gnu/usr.bin/binutils/ld/Makefile.amd64
index 01758204ad70..c9919bff2987 100644
--- a/gnu/usr.bin/binutils/ld/Makefile.amd64
+++ b/gnu/usr.bin/binutils/ld/Makefile.amd64
@@ -16,6 +16,7 @@ _i386_path= \"${TOOLS_PREFIX}/usr/lib32\"
EMS+= ${X86_EMULATION}
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= ${X86_EMULATION}.${ext}
+ldscripts/${X86_EMULATION}.${ext}: e${X86_EMULATION}.c
.endfor
SRCS+= e${X86_EMULATION}.c
diff --git a/gnu/usr.bin/binutils/ld/Makefile.mips b/gnu/usr.bin/binutils/ld/Makefile.mips
index c6cd69f64f68..8a7dfbb5f116 100644
--- a/gnu/usr.bin/binutils/ld/Makefile.mips
+++ b/gnu/usr.bin/binutils/ld/Makefile.mips
@@ -22,6 +22,7 @@ EMS+= ${abi}
#.endif
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= ${abi}.${ext}
+ldscripts/${abi}.${ext}: e${abi}.c
.endfor
SRCS+= e${abi}.c
CLEANFILES+= e${abi}.c
diff --git a/gnu/usr.bin/binutils/ld/Makefile.powerpc64 b/gnu/usr.bin/binutils/ld/Makefile.powerpc64
index 29fba2afc9bf..9e18cb4a60a8 100644
--- a/gnu/usr.bin/binutils/ld/Makefile.powerpc64
+++ b/gnu/usr.bin/binutils/ld/Makefile.powerpc64
@@ -16,6 +16,7 @@ _ppc32_path= \"${TOOLS_PREFIX}/usr/lib32\"
EMS+= ${PPC32_EMULATION}
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= ${PPC32_EMULATION}.${ext}
+ldscripts/${PPC32_EMULATION}.${ext}: e${PPC32_EMULATION}.c
.endfor
SRCS+= e${PPC32_EMULATION}.c
diff --git a/gnu/usr.bin/binutils/ld/Makefile.sparc64 b/gnu/usr.bin/binutils/ld/Makefile.sparc64
index d28a23561529..9ce6c6ff6585 100644
--- a/gnu/usr.bin/binutils/ld/Makefile.sparc64
+++ b/gnu/usr.bin/binutils/ld/Makefile.sparc64
@@ -17,6 +17,7 @@ e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
EMS+= elf${BITS}_sparc
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+= elf${BITS}_sparc.${ext}
+ldscripts/elf${BITS}_sparc.${ext}: eelf${BITS}_sparc.c
.endfor
SRCS+= eelf${BITS}_sparc.c
diff --git a/gnu/usr.bin/binutils/libbfd/Makefile.i386 b/gnu/usr.bin/binutils/libbfd/Makefile.i386
index e6d24a993a37..e41e30d4deab 100644
--- a/gnu/usr.bin/binutils/libbfd/Makefile.i386
+++ b/gnu/usr.bin/binutils/libbfd/Makefile.i386
@@ -17,3 +17,5 @@ VECS= ${DEFAULT_VECTOR} \
peigen.c: peXXigen.c
sed -e s/XX/pe/g ${.ALLSRC} > ${.TARGET}
+
+CLEANFILES+= peigen.c