summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authortv <tv@NetBSD.org>2001-08-06 19:34:22 +0000
committertv <tv@NetBSD.org>2001-08-06 19:34:22 +0000
commitaff074824ebcf0f03a498cebbc9f0168f940c4e1 (patch)
treea000acf842c6569a05039240bbae98925556ad66 /gnu/usr.bin
parent51bac6260437e19d1d7679828bcfb8b2c73e5353 (diff)
Install ldscripts into /usr/share/ldscripts. (Currently non-unified, so the
install will only add scripts for the current target to /usr/share/ldscripts. This will be fixed to build all applicable scripts for all NetBSD targets.)
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index 58e668fd6ca..767a7133743 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2001/08/06 19:12:03 tv Exp $
+# $NetBSD: Makefile,v 1.2 2001/08/06 19:34:22 tv Exp $
TOP= ${.CURDIR}/../../..
DIST= ${TOP}/dist/toolchain
@@ -28,9 +28,10 @@ DPADD+= ${IBERTYOBJ}/libiberty.a
TEXINFO= ld.texinfo
INFOFLAGS= -I${DIST}/ld -I${DIST}/bfd/doc
+FILESDIR= /usr/share/ldscripts
.PATH: ${DIST}/ld ${DIST}/ld/emulparams \
- ${DIST}/ld/emultempl ${DIST}/ld/scripttempl
+ ${DIST}/ld/emultempl ${DIST}/ld/scripttempl ldscripts
CLEANFILES+= stringify.sed
stringify.sed: ${G_STRINGIFY}
@@ -50,6 +51,14 @@ CLEANFILES+= .depend.${f} e${f}.c
e${f}.c: ${DIST}/ld/genscripts.sh stringify.sed
LIB_PATH=/usr/lib sh ${DIST}/ld/genscripts.sh ${DIST}/ld ${LIBDIR} /usr \
none ${TARGET} ${TARGET} ${G_EMUL} ${LIBDIR} ${f}
+
+FILES+= ${f}.x ${f}.xbn ${f}.xn ${f}.xr ${f}.xu
+
+# XXX hack to find out if .xs exists - slow!
+HAS_XS!= grep '^GENERATE_SHLIB_SCRIPT' ${DIST}/ld/emulparams/${f}.sh || echo
+.if !empty(HAS_XS)
+FILES+= ${f}.xs
+.endif
.endfor
.include <bsd.prog.mk>