From aff074824ebcf0f03a498cebbc9f0168f940c4e1 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 6 Aug 2001 19:34:22 +0000 Subject: 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.) --- gnu/usr.bin/binutils/ld/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'gnu/usr.bin/binutils') 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 -- cgit