head	1.36;
access;
symbols
	RELENG_8_4:1.36.0.2
	RELENG_9_1_0_RELEASE:1.34.2.2.2.2
	RELENG_9_1:1.34.2.2.0.2
	RELENG_9_1_BP:1.34.2.2
	RELENG_8_3_0_RELEASE:1.32.10.1.8.1
	RELENG_8_3:1.32.10.1.0.8
	RELENG_8_3_BP:1.32.10.1
	RELENG_9_0_0_RELEASE:1.34.2.1.2.1
	RELENG_9_0:1.34.2.1.0.2
	RELENG_9_0_BP:1.34.2.1
	RELENG_9:1.34.0.2
	RELENG_9_BP:1.34
	RELENG_7_4_0_RELEASE:1.32.14.1
	RELENG_8_2_0_RELEASE:1.32.10.1.6.1
	RELENG_7_4:1.32.0.14
	RELENG_7_4_BP:1.32
	RELENG_8_2:1.32.10.1.0.6
	RELENG_8_2_BP:1.32.10.1
	RELENG_8_1_0_RELEASE:1.32.10.1.4.1
	RELENG_8_1:1.32.10.1.0.4
	RELENG_8_1_BP:1.32.10.1
	RELENG_7_3_0_RELEASE:1.32.12.1
	RELENG_7_3:1.32.0.12
	RELENG_7_3_BP:1.32
	RELENG_8_0_0_RELEASE:1.32.10.1.2.1
	RELENG_8_0:1.32.10.1.0.2
	RELENG_8_0_BP:1.32.10.1
	RELENG_8:1.32.0.10
	RELENG_8_BP:1.32
	RELENG_7_2_0_RELEASE:1.32.8.1
	RELENG_7_2:1.32.0.8
	RELENG_7_2_BP:1.32
	RELENG_7_1_0_RELEASE:1.32.6.1
	RELENG_6_4_0_RELEASE:1.31.12.1
	RELENG_7_1:1.32.0.6
	RELENG_7_1_BP:1.32
	RELENG_6_4:1.31.0.12
	RELENG_6_4_BP:1.31
	RELENG_7_0_0_RELEASE:1.32
	RELENG_6_3_0_RELEASE:1.31
	RELENG_7_0:1.32.0.4
	RELENG_7_0_BP:1.32
	RELENG_6_3:1.31.0.10
	RELENG_6_3_BP:1.31
	RELENG_7:1.32.0.2
	RELENG_7_BP:1.32
	RELENG_6_2_0_RELEASE:1.31
	RELENG_6_2:1.31.0.8
	RELENG_6_2_BP:1.31
	RELENG_5_5_0_RELEASE:1.30
	RELENG_5_5:1.30.0.8
	RELENG_5_5_BP:1.30
	RELENG_6_1_0_RELEASE:1.31
	RELENG_6_1:1.31.0.6
	RELENG_6_1_BP:1.31
	RELENG_6_0_0_RELEASE:1.31
	RELENG_6_0:1.31.0.4
	RELENG_6_0_BP:1.31
	RELENG_6:1.31.0.2
	RELENG_6_BP:1.31
	RELENG_5_4_0_RELEASE:1.30
	RELENG_5_4:1.30.0.6
	RELENG_5_4_BP:1.30
	RELENG_4_11_0_RELEASE:1.8.2.8
	RELENG_4_11:1.8.2.8.0.10
	RELENG_4_11_BP:1.8.2.8
	RELENG_5_3_0_RELEASE:1.30
	RELENG_5_3:1.30.0.4
	RELENG_5_3_BP:1.30
	RELENG_5:1.30.0.2
	RELENG_5_BP:1.30
	BEFORE_UN_JBING:1.29
	BEFORE_BU_2_15:1.27
	RELENG_4_10_0_RELEASE:1.8.2.8
	RELENG_4_10:1.8.2.8.0.8
	RELENG_4_10_BP:1.8.2.8
	RELENG_5_2_1_RELEASE:1.26
	RELENG_5_2_0_RELEASE:1.26
	RELENG_5_2:1.26.0.4
	RELENG_5_2_BP:1.26
	RELENG_4_9_0_RELEASE:1.8.2.8
	RELENG_4_9:1.8.2.8.0.6
	RELENG_4_9_BP:1.8.2.8
	RELENG_5_1_0_RELEASE:1.26
	RELENG_5_1:1.26.0.2
	RELENG_5_1_BP:1.26
	RELENG_4_8_0_RELEASE:1.8.2.8
	RELENG_4_8:1.8.2.8.0.4
	RELENG_4_8_BP:1.8.2.8
	RELENG_5_0_0_RELEASE:1.23
	RELENG_5_0:1.23.0.2
	RELENG_5_0_BP:1.23
	RELENG_4_7_0_RELEASE:1.8.2.8
	RELENG_4_7:1.8.2.8.0.2
	RELENG_4_7_BP:1.8.2.8
	BEFORE_BU_2121__RELENG4:1.8.2.7
	RELENG_4_6_2_RELEASE:1.8.2.5.4.1
	RELENG_4_6_1_RELEASE:1.8.2.5
	RELENG_4_6_0_RELEASE:1.8.2.5
	RELENG_4_6:1.8.2.5.0.4
	RELENG_4_6_BP:1.8.2.5
	BEFORE_BU_2_12:1.18
	RELENG_4_5_0_RELEASE:1.8.2.5
	BEFORE_BU_2112_snap:1.18
	RELENG_4_5:1.8.2.5.0.2
	RELENG_4_5_BP:1.8.2.5
	RELENG_4_4_0_RELEASE:1.8.2.4
	RELENG_4_4:1.8.2.4.0.2
	RELENG_4_4_BP:1.8.2.4
	BEFORE_BU_2112__RELENG4:1.8.2.2
	BEFORE_BU_2110:1.14
	RELENG_4_3_0_RELEASE:1.8.2.2
	RELENG_4_3:1.8.2.2.0.2
	RELENG_4_3_BP:1.8.2.2
	RELENG_4_2_0_RELEASE:1.8.2.1
	binutils_2_10_0:1.10
	RELENG_4_1_1_RELEASE:1.8.2.1
	PRE_SMPNG:1.10
	RELENG_4_1_0_RELEASE:1.8.2.1
	RELENG_3_5_0_RELEASE:1.6.2.1
	BEFORE_2_9_1_UPGRADE:1.9
	RELENG_4_0_0_RELEASE:1.8
	RELENG_4:1.8.0.2
	RELENG_4_BP:1.8
	RELENG_3_4_0_RELEASE:1.6.2.1
	RELENG_3_3_0_RELEASE:1.6.2.1
	RELENG_3_2_PAO:1.6.0.4
	RELENG_3_2_PAO_BP:1.6
	RELENG_3_2_0_RELEASE:1.6
	RELENG_3_1_0_RELEASE:1.6
	RELENG_3:1.6.0.2
	RELENG_3_BP:1.6
	RELENG_3_0_0_RELEASE:1.6;
locks; strict;
comment	@# @;


1.36
date	2012.11.17.01.49.08;	author svnexp;	state Exp;
branches
	1.36.2.1;
next	1.35;

1.35
date	2012.04.29.09.32.44;	author kib;	state Exp;
branches;
next	1.34;

1.34
date	2011.03.21.04.03.55;	author marcel;	state Exp;
branches
	1.34.2.1;
next	1.33;

1.33
date	2011.02.18.20.54.12;	author dim;	state Exp;
branches;
next	1.32;

1.32
date	2007.09.26.01.31.28;	author marcel;	state Exp;
branches
	1.32.2.1
	1.32.6.1
	1.32.8.1
	1.32.10.1
	1.32.12.1
	1.32.14.1;
next	1.31;

1.31
date	2004.12.21.09.59.40;	author ru;	state Exp;
branches
	1.31.2.1
	1.31.12.1;
next	1.30;

1.30
date	2004.07.08.17.05.32;	author obrien;	state Exp;
branches;
next	1.29;

1.29
date	2004.06.20.01.44.58;	author obrien;	state Exp;
branches;
next	1.28;

1.28
date	2004.06.16.07.09.37;	author obrien;	state Exp;
branches;
next	1.27;

1.27
date	2004.02.24.19.23.30;	author johan;	state Exp;
branches;
next	1.26;

1.26
date	2003.04.12.14.44.48;	author ru;	state Exp;
branches;
next	1.25;

1.25
date	2003.04.11.18.02.09;	author ru;	state Exp;
branches;
next	1.24;

1.24
date	2003.04.05.20.30.29;	author imp;	state Exp;
branches;
next	1.23;

1.23
date	2002.07.29.09.40.08;	author ru;	state Exp;
branches;
next	1.22;

1.22
date	2002.03.29.00.41.01;	author obrien;	state Exp;
branches;
next	1.21;

1.21
date	2002.03.13.05.14.29;	author obrien;	state Exp;
branches;
next	1.20;

1.20
date	2002.02.07.01.37.53;	author obrien;	state Exp;
branches;
next	1.19;

1.19
date	2002.01.27.22.47.22;	author obrien;	state Exp;
branches;
next	1.18;

1.18
date	2001.10.14.01.58.18;	author obrien;	state Exp;
branches;
next	1.17;

1.17
date	2001.10.14.01.57.19;	author obrien;	state Exp;
branches;
next	1.16;

1.16
date	2001.09.24.09.25.05;	author ru;	state Exp;
branches;
next	1.15;

1.15
date	2001.06.01.05.30.29;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	2001.05.03.21.37.06;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	2001.02.28.10.46.48;	author obrien;	state Exp;
branches;
next	1.12;

1.12
date	2001.02.27.11.25.43;	author obrien;	state Exp;
branches;
next	1.11;

1.11
date	2000.11.25.13.56.28;	author obrien;	state Exp;
branches;
next	1.10;

1.10
date	2000.05.22.08.09.40;	author obrien;	state Exp;
branches;
next	1.9;

1.9
date	2000.03.27.18.01.52;	author bde;	state Exp;
branches;
next	1.8;

1.8
date	99.11.06.22.36.40;	author jb;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	99.08.27.23.34.52;	author peter;	state Exp;
branches;
next	1.6;

1.6
date	98.06.04.06.26.23;	author bde;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	98.06.03.18.00.49;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	98.05.11.09.33.55;	author jb;	state Exp;
branches;
next	1.3;

1.3
date	98.05.04.21.38.46;	author jb;	state Exp;
branches;
next	1.2;

1.2
date	98.05.04.16.31.41;	author bde;	state Exp;
branches;
next	1.1;

1.1
date	98.03.12.02.55.20;	author jdp;	state Exp;
branches;
next	;

1.36.2.1
date	2012.11.17.01.49.08;	author svnexp;	state dead;
branches;
next	1.36.2.2;

1.36.2.2
date	2013.03.28.13.02.48;	author svnexp;	state Exp;
branches;
next	;

1.34.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.34.2.1.2.1;
next	1.34.2.2;

1.34.2.2
date	2012.05.13.13.57.53;	author kib;	state Exp;
branches
	1.34.2.2.2.1;
next	1.34.2.3;

1.34.2.3
date	2012.11.17.11.36.13;	author svnexp;	state Exp;
branches;
next	;

1.34.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.34.2.1.2.2;

1.34.2.1.2.2
date	2012.11.17.08.36.12;	author svnexp;	state Exp;
branches;
next	;

1.34.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.34.2.2.2.2;

1.34.2.2.2.2
date	2012.11.17.08.47.03;	author svnexp;	state Exp;
branches;
next	;

1.32.2.1
date	2012.11.17.08.01.29;	author svnexp;	state Exp;
branches;
next	;

1.32.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.32.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.32.10.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.32.10.1.2.1
	1.32.10.1.4.1
	1.32.10.1.6.1
	1.32.10.1.8.1;
next	1.32.10.2;

1.32.10.2
date	2012.11.17.10.35.58;	author svnexp;	state Exp;
branches;
next	;

1.32.10.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.32.10.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.32.10.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.32.10.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.32.10.1.8.2;

1.32.10.1.8.2
date	2012.11.17.08.24.39;	author svnexp;	state Exp;
branches;
next	;

1.32.12.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.32.14.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.32.14.2;

1.32.14.2
date	2012.11.17.08.16.38;	author svnexp;	state Exp;
branches;
next	;

1.31.2.1
date	2012.11.17.07.39.15;	author svnexp;	state Exp;
branches;
next	;

1.31.12.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.8.2.1
date	2000.07.06.22.15.52;	author obrien;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	2000.11.25.23.16.08;	author obrien;	state Exp;
branches;
next	1.8.2.3;

1.8.2.3
date	2001.07.31.23.42.36;	author obrien;	state Exp;
branches;
next	1.8.2.4;

1.8.2.4
date	2001.08.01.22.54.09;	author obrien;	state Exp;
branches;
next	1.8.2.5;

1.8.2.5
date	2001.09.24.15.44.23;	author ru;	state Exp;
branches
	1.8.2.5.4.1;
next	1.8.2.6;

1.8.2.6
date	2002.07.17.10.40.40;	author ru;	state Exp;
branches;
next	1.8.2.7;

1.8.2.7
date	2002.08.07.16.31.43;	author ru;	state Exp;
branches;
next	1.8.2.8;

1.8.2.8
date	2002.09.01.23.39.14;	author obrien;	state Exp;
branches;
next	1.8.2.9;

1.8.2.9
date	2012.11.17.07.23.01;	author svnexp;	state Exp;
branches;
next	;

1.8.2.5.4.1
date	2002.08.14.06.57.08;	author ru;	state Exp;
branches;
next	;

1.6.2.1
date	99.08.29.14.32.06;	author peter;	state Exp;
branches;
next	;


desc
@@


1.36
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/gnu/usr.bin/binutils/ld/Makefile 234782 2012-04-29 09:32:44Z kib $

.include "../Makefile.inc0"
.include <bsd.own.mk>

.PATH: ${SRCDIR}/ld

.if ${TARGET_ARCH} == "ia64"
CFLAGS+= -O1
.endif

PROG=	ld
SCRIPTDIR= /usr/libdata/ldscripts
SRCS+=	ldcref.c \
	ldctor.c \
	ldemul-list.h \
	ldemul.c \
	ldexp.c \
	ldfile.c \
	ldgram.y \
	ldlang.c \
	ldlex.l \
	ldmain.c \
	ldmisc.c \
	ldver.c \
	ldwrite.c \
	lexsup.c \
	mri.c

CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX}\"
CFLAGS+= -DTOOLBINDIR=\"${TOOLS_PREFIX}/${BINDIR}/libexec\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
.if ${MK_SHARED_TOOLCHAIN} == "no"
NO_SHARED?= yes
.endif
DPADD=	${RELTOP}/libbfd/libbfd.a
DPADD+=	${RELTOP}/libiberty/libiberty.a
LDADD=	${DPADD}
CLEANDIRS+=	ldscripts
CLEANFILES+=	ldemul-list.h stringify.sed

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}
.endfor

EMXFR=
EMLST=
.for _e in ${NATIVE_EMULATION} ${EMS}
EMXFR+=	extern ld_emulation_xfer_type ld_${_e}_emulation;
EMLST+=	&ld_${_e}_emulation,
.endfor

ldemul-list.h:
	echo "${EMXFR}" > ${.TARGET}
	echo "#define EMULATION_LIST ${EMLST} 0" >> ${.TARGET}

stringify.sed:
	ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET}

afterinstall:
	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	    ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}

.include <bsd.prog.mk>
@


1.36.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:02:48 +0000
@
text
@d1 72
@


1.36.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 59
# $FreeBSD: releng/8.4/gnu/usr.bin/binutils/ld/Makefile 172326 2007-09-26 01:31:28Z marcel $

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/ld

.if ${TARGET_ARCH} == "ia64"
CFLAGS+= -O1
.endif

PROG=	ld
SCRIPTDIR= /usr/libdata/ldscripts
SRCS+=	ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
	ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
	ldver.c ldwrite.c lexsup.c mri.c

WARNS?=	0	# ldemul.h problem (`struct option' declared inside parameter list)
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX}\"
CFLAGS+= -DTOOLBINDIR=\"${TOOLS_PREFIX}/${BINDIR}/libexec\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
NO_SHARED?= yes
DPADD=	${RELTOP}/libbfd/libbfd.a
DPADD+=	${RELTOP}/libiberty/libiberty.a
LDADD=	${DPADD}
CLEANDIRS+=	ldscripts
CLEANFILES+=	ldemul-list.h stringify.sed

HOST=		${TARGET_TUPLE}
LIBSERACHPATH=	\"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
ELF_SCR_EXT=	x xbn xn xr xs xu xc xsc xd xdc
.for ext in ${ELF_SCR_EXT}
LDSCRIPTS+=	${NATIVE_EMULATION}.${ext}
.endfor

EMS+=	 ${NATIVE_EMULATION}
EMXFR=
EMLST=
.for _e in ${EMS}
EMXFR+=	extern ld_emulation_xfer_type ld_${_e}_emulation;
EMLST+=	&ld_${_e}_emulation,
.endfor

ldemul-list.h:
	echo "${EMXFR}" > ${.TARGET}
	echo "#define EMULATION_LIST ${EMLST} 0" >> ${.TARGET}

stringify.sed:
	ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET}

afterinstall:
	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	    ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}

.include <bsd.prog.mk>
@


1.35
log
@SVN rev 234782 on 2012-04-29 09:32:44Z by kib

Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

Reviewed by:	ru (previous version)
MFC after:	2 weeks
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.34
log
@SVN rev 219811 on 2011-03-21 04:03:55Z by marcel

Fix typo: s/LIBSERACHPATH/LIBSEARCHPATH/g
@
text
@d4 1
d38 1
d40 1
@


1.34.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.34.2.2
log
@SVN rev 235398 on 2012-05-13 13:57:53Z by kib

MFC r234782:
Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

MFC r235152 (by imp):
Make is part of the bootstrap path, so we need to guard against this
not being defined.  Otherwise we don't make a new make when the old
make is incompatible.
@
text
@a3 1
.include <bsd.own.mk>
a36 1
.if ${MK_SHARED_TOOLCHAIN} == "no"
a37 1
.endif
@


1.34.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/gnu/usr.bin/binutils/ld/Makefile 235398 2012-05-13 13:57:53Z kib $
@


1.34.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.34.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/gnu/usr.bin/binutils/ld/Makefile 235398 2012-05-13 13:57:53Z kib $
@


1.34.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.34.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/gnu/usr.bin/binutils/ld/Makefile 219811 2011-03-21 04:03:55Z marcel $
@


1.33
log
@SVN rev 218822 on 2011-02-18 20:54:12Z by dim

Merge binutils 2.17.50 to head.  This brings a number of improvements to
x86 CPU support, better support for powerpc64, some new directives, and
many other things.  Bump __FreeBSD_version, and add a note to UPDATING.

Thanks to the many people that have helped to test this.

Obtained from:	projects/binutils-2.17
@
text
@d45 1
a45 1
LIBSERACHPATH=	\"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
@


1.32
log
@Force -O1 compilation when targeted for ia64. GCC 4 generates
bad code at -O2. Since this is likely caused by the low-level
optimizer, testing TARGET_ARCH rather than MACHINE_ARCH should
handle ia64 cross-compilation as well. With this work-around
in place, we can release using the current GCC and Binutils
code at the default optimization level on ia64.

Approved by: re (kensmith)
@
text
@d13 15
a27 3
SRCS+=	ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
	ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
	ldver.c ldwrite.c lexsup.c mri.c
a28 1
WARNS?=	0	# ldemul.h problem (`struct option' declared inside parameter list)
d46 1
a46 1
ELF_SCR_EXT=	x xbn xn xr xs xu xc xsc xd xdc
a50 1
EMS+=	 ${NATIVE_EMULATION}
d53 1
a53 1
.for _e in ${EMS}
@


1.32.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/gnu/usr.bin/binutils/ld/Makefile 172326 2007-09-26 01:31:28Z marcel $
@


1.32.14.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.32.14.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/gnu/usr.bin/binutils/ld/Makefile 172326 2007-09-26 01:31:28Z marcel $
@


1.32.12.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.32.10.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.32.10.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/gnu/usr.bin/binutils/ld/Makefile 172326 2007-09-26 01:31:28Z marcel $
@


1.32.10.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.32.10.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/gnu/usr.bin/binutils/ld/Makefile 172326 2007-09-26 01:31:28Z marcel $
@


1.32.10.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.32.10.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.32.10.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.32.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.32.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.31
log
@NOSHARED -> NO_SHARED
@
text
@d7 4
@


1.31.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/gnu/usr.bin/binutils/ld/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.31.12.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.30
log
@MAJOR cleanup of the Bmake framework.
This includes removing all vestiges of the old not-really supported
ability to build cross tools targeting non-FreeBSD systems, such as
m68k Lynx and NetBSD.  Move as much duplicated code from platform
Makefiles into the shared Makefiles.  Add a simple mechanism for
specifying ELF 'ldscripts'.  Also share as many .h files as possible
(now a single bfd.h vs. one per platform).
@
text
@d22 1
a22 1
NOSHARED?= yes
@


1.29
log
@Our 'TOOLS_PREFIX' and not 'DESTDIR' matches what the stock GNU build
framework wants.
@
text
@d14 2
d29 6
a34 7
# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
# binutils release. FreeBSD only distributes the bits that are required to
# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
.PATH: ${BINUTILSDISTDIR}/ld
CFLAGS+= -I${BINUTILSDISTDIR}/ld
.endif
d36 1
@


1.28
log
@Updated Bmake framework for Binutils 2.15.
@
text
@d16 2
a17 2
CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${DESTDIR}\"
CFLAGS+= -DTOOLBINDIR=\"${DESTDIR}/${BINDIR}/libexec\"
@


1.27
log
@style.Makefile(5):
	Use WARNS?= instead of WARNS=

For this to work properly for all part is the subdirectories
the WARNS assignments in Makefile.inc0 are moved to the correspondning
Makefile.inc.

Approved by:	obrien (binutils maintainer)
Tested by:	make universe
@
text
@d13 1
a13 1
WARNS?=	1
d16 3
@


1.26
log
@Removed invasion into these makefiles by the "legacy" stuff;
I have a better fix in the works.
@
text
@d13 1
a13 1
WARNS=	1
@


1.25
log
@libbinutils.a needs basename(3); when the latter is provided
by -legacy, liblegacy.a should come last in the LDADD list.
@
text
@d18 2
a19 3
DPADD:=	${RELTOP}/libbfd/libbfd.a \
	${RELTOP}/libiberty/libiberty.a \
	${DPADD}
@


1.24
log
@Migrate to a new way of dealing with building from old revisions of
FreeBSD.  This method attempts to centralize all the necessary hacks
or work arounds in one of two places in the tree (src/Makefile.inc1
and src/tools/build).  We build a small compatibility library
(libbuild.a) as well as selectively installing necessary include
files.  We then include this directory when building host binaries.

This removes all the past release compatibilty hacks from various
places in the tree.  We still build on tip of stable and current.  I
will work with those that want to support more, although I anticipate
it will just work.

Many thanks to ru@@, obrien@@ and jhb@@ for providing valuable input at
various stage of implementation, as well as for working together to
positively effect a change for the better.
@
text
@d18 3
a20 2
DPADD+=	${RELTOP}/libbfd/libbfd.a
DPADD+=	${RELTOP}/libiberty/libiberty.a
@


1.23
log
@Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
@
text
@a12 8
.if defined(BOOTSTRAPPING) && !exists(/usr/include/elf-hints.h)
SRCS+=	elf-hints.h
CLEANFILES+=	elf-hints.h

elf-hints.h:
	ln -sf ${.CURDIR}/../../../../include/${.TARGET} .
.endif

d18 1
a18 1
DPADD=	${RELTOP}/libbfd/libbfd.a
@


1.22
log
@Make it easier to change the native emulation.

Tested on:	alpha, i386, sparc64
@
text
@d55 1
a55 1
	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
@


1.21
log
@Turn up WARNS as high as possible.

Tested by:	gcc31, gcc32, /usr/bin/cc
@
text
@d43 2
a44 2
EMXFR+=	extern ld_emulation_xfer_type ${_e};
EMLST+=	&${_e},
@


1.20
log
@Set the SCRIPTDIR to be rooted at TOOLS_PREFIX rather than DESTDIR.
(the two may be different (ie, build vs. runtime))
Allow ldscript's SEARCH_DIR do be rooted somewhere other than `/'.
(in this case at TOOLS_PREFIX)

These changes are most helpful during `make buildworld' so that the shared
libs built in the middle of `make buildworld' are used vs. the ones in
/usr/lib on the build machine.

Submitted by:	ru
@
text
@d21 1
@


1.19
log
@Change the way the version strings are handled.
@
text
@d21 1
a21 1
CFLAGS+= -DSCRIPTDIR=\"${DESTDIR}/usr/libdata\"
@


1.18
log
@Clean up a little bit more.
@
text
@d22 1
a22 1
CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\"
@


1.17
log
@Clean up the formatting.
@
text
@d16 1
d22 1
a23 1
CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\"
@


1.16
log
@Fixed the buildworld breakage in cross-tools caused by
misuse of /usr/src/include headers.  This REALLY fixes
the 20010919 src/UPDATING entry.

With this patch the 4.2-RELEASE box was able to survive
the 5.0-CURRENT "make world".

Beat over the head with this patch:	obrien
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.15 2001/06/01 05:30:29 obrien Exp $
d7 5
a11 5
PROG=		ld
SCRIPTDIR=	/usr/libdata/ldscripts
SRCS+=		ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
		ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
		ldver.c ldwrite.c lexsup.c mri.c
d14 1
a14 1
SRCS+=		elf-hints.h
d17 1
a17 1
		ln -sf ${.CURDIR}/../../../../include/${.TARGET} .
d20 7
a26 7
CFLAGS+=	-DSCRIPTDIR=\"${DESTDIR}/usr/libdata\"
CFLAGS+=	-I${SRCDIR}/ld -I${SRCDIR}/bfd
CFLAGS+=	-DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\"
NOSHARED?=	yes
DPADD=		${RELTOP}/libbfd/libbfd.a
DPADD+=		${RELTOP}/libiberty/libiberty.a
LDADD=		${DPADD}
d33 3
a35 3
.if	defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
.PATH:		${BINUTILSDISTDIR}/ld
CFLAGS+=	-I${BINUTILSDISTDIR}/ld
d41 1
a41 1
EMXFR+= extern ld_emulation_xfer_type ${_e};
d46 2
a47 2
	echo "${EMXFR}" > ldemul-list.h
	echo "#define EMULATION_LIST ${EMLST} 0" >> ldemul-list.h
@


1.15
log
@Upgrade to Binutils 2.11.0.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.14 2001/05/03 21:37:06 obrien Exp $
d12 8
a21 1
CFLAGS+=	-I${.CURDIR}/../../../../include
@


1.14
log
@Total hack to fix broken bootstrap.  Add -I/usr/src/include at the tail
end of the include searching.  We really need a real fix for the issue of
which set of headers to use in compiling the cross-tools -- /usr/include,
or /usr/src/include.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.13 2001/02/28 10:46:48 obrien Exp $
d13 1
a13 1
CFLAGS+=	-I${SRCDIR}/ld
@


1.13
log
@Allow "NOSHARED" to be overridden.

Submitted by:	bde
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.12 2001/02/27 11:25:43 obrien Exp $
d14 1
@


1.12
log
@Make critical toolchain binaries staticly linked in this development
version of the OS.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.11 2000/11/25 13:56:28 obrien Exp $
d15 1
a15 1
NOSHARED=	yes
@


1.11
log
@`stringify.sed' has been replaced by `astring.sed' [on ANSI-C systems].
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.10 2000/05/22 08:09:40 obrien Exp $
d15 1
@


1.10
log
@Pull the switch and activate our Binutils to a snapshot of the up and
comming 2.10 release.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.9 2000/03/27 18:01:52 bde Exp $
d41 1
a41 1
	ln -sf ${SRCDIR}/ld/emultempl/stringify.sed ${.TARGET}
@


1.9
log
@Use `${dir}/libfoo.a' instead of `-L${dir} -lfoo' for local static
libraries in LDADD so that `make checkdpadd' doesn't report non-errors.

Fixed some style bugs (the usual ones for DPADD and LDADD, and misformatting
of $FreeBSD$).
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.8 1999/11/06 22:36:40 jb Exp $
d14 1
d19 1
a19 1
CLEANFILES+=	ldemul-list.h
d39 3
@


1.8
log
@Add a BINUTILSDISTDIR hook here too.
@
text
@d1 1
a1 3
#
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.7 1999/08/27 23:34:52 peter Exp $
#
d14 1
a14 3
LDADD+=		-L${RELTOP}/libbfd -lbfd
LDADD+=		-L${RELTOP}/libiberty -liberty
DPADD+=		${RELTOP}/libbfd/libbfd.a
d16 1
@


1.8.2.1
log
@MFC:  Upgrade to Binutils 2.10.0.
@
text
@d1 3
a3 1
# $FreeBSD$
d16 3
a18 2
CFLAGS+=	-DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\"
DPADD=		${RELTOP}/libbfd/libbfd.a
a19 1
LDADD=		${DPADD}
d21 1
a21 1
CLEANFILES+=	ldemul-list.h stringify.sed
a40 3

stringify.sed:
	ln -sf ${SRCDIR}/ld/emultempl/stringify.sed ${.TARGET}
@


1.8.2.2
log
@MFC: `stringify.sed' has been replaced by `astring.sed' [on ANSI-C systems].
     Also fix the erronious stringify.sed dependancies.
@
text
@d41 1
a41 1
	ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET}
@


1.8.2.3
log
@MFC: rev 1.14 -- total hack to fix broken bootstrap.  Add -I/usr/src/include
at the tail end of the include searching.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.8.2.2 2000/11/25 23:16:08 obrien Exp $
d13 1
a13 1
CFLAGS+=	-I${SRCDIR}/ld -I${.CURDIR}/../../../../include
@


1.8.2.4
log
@MFC: update to Binutils 2.11.2.
@
text
@d1 1
a1 1
# $FreeBSD$
d13 1
a13 2
CFLAGS+=	-I${SRCDIR}/ld -I${SRCDIR}/bfd
CFLAGS+=	-I${.CURDIR}/../../../../include
a14 1
NOSHARED?=	yes
@


1.8.2.5
log
@MFC: Bootstrapping fixes.

This unbreaks source upgrades from 4.2-RELEASE.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.8.2.4 2001/08/01 22:54:09 obrien Exp $
a11 8

.if defined(BOOTSTRAPPING) && !exists(/usr/include/elf-hints.h)
SRCS+=		elf-hints.h
CLEANFILES+=	elf-hints.h
elf-hints.h:
		ln -sf ${.CURDIR}/../../../../include/${.TARGET} .
.endif

d14 1
@


1.8.2.5.4.1
log
@MFC: Honor TOOLS_PREFIX.

(Makes RELENG_4_6 buildable for those who do not have libcrypto.so.2
under /usr/lib and attempt to buildworld with crypto support.  This
became needed after the OpenSSH merge.)

Approved by:	re (murray)
@
text
@d1 1
a1 1
# $FreeBSD$
d20 1
a20 1
CFLAGS+=	-DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
@


1.8.2.6
log
@MFC: Honour TOOLS_PREFIX.
@
text
@d1 1
a1 1
# $FreeBSD$
d20 1
a20 1
CFLAGS+=	-DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
@


1.8.2.7
log
@MFC: Drop support for COPY.
@
text
@d53 1
a53 1
	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
@


1.8.2.8
log
@Upgrade to binutils 2.12.1.
@
text
@d7 5
a11 5
PROG=	ld
SCRIPTDIR= /usr/libdata/ldscripts
SRCS+=	ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
	ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
	ldver.c ldwrite.c lexsup.c mri.c
d14 1
a14 1
SRCS+=	elf-hints.h
a15 1

d17 1
a17 1
	ln -sf ${.CURDIR}/../../../../include/${.TARGET} .
d20 7
a26 8
WARNS=	1
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
NOSHARED?= yes
DPADD=	${RELTOP}/libbfd/libbfd.a
DPADD+=	${RELTOP}/libiberty/libiberty.a
LDADD=	${DPADD}
d33 3
a35 3
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
.PATH: ${BINUTILSDISTDIR}/ld
CFLAGS+= -I${BINUTILSDISTDIR}/ld
d41 2
a42 2
EMXFR+=	extern ld_emulation_xfer_type ld_${_e}_emulation;
EMLST+=	&ld_${_e}_emulation,
d46 2
a47 2
	echo "${EMXFR}" > ${.TARGET}
	echo "#define EMULATION_LIST ${EMLST} 0" >> ${.TARGET}
@


1.8.2.9
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/gnu/usr.bin/binutils/ld/Makefile 102827 2002-09-01 23:44:26Z obrien $
@


1.7
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d22 8
@


1.6
log
@Don't use beforedepend; just put generated headers in SRCS.  ldgram.h
was already put in SRCS by the general yacc rules.  Putting ldemul-list.h
in SRCS fixes races in `make -jN' when .depend hasn't been made.

Don't forget to clean ldemul-list.h.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.5 1998/06/03 18:00:49 peter Exp $
@


1.6.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.5
log
@Add missing DPADD's.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.4 1998/05/11 09:33:55 jb Exp $
d11 1
a11 1
SRCS+=		ldcref.c ldctor.c ldemul.c ldexp.c ldfile.c \
d21 1
a21 2

beforedepend: ldemul-list.h ldgram.h
@


1.4
log
@The yacc makefile changes don't seem to know when to generate the
header file and when not to, so for the time being make sure the
sucker gets generated up front.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1998/05/04 21:38:46 jb Exp $
d18 2
@


1.3
log
@Work out the list of emulations based on the cross-architectures
defined. The TARGET is now set from an included makefile.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.2 1998/05/04 16:31:41 bde Exp $
d20 1
a20 1
beforedepend: ldemul-list.h
@


1.2
log
@Fixed races in `make -jN' using new yacc rules.  This also fixes plain
`make' (without a previous `make depend').
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.1 1998/03/12 02:55:20 jdp Exp $
a13 1
CFLAGS+=	-DDEFAULT_EMULATION=\"${EMULATION}\"
a14 1
CFLAGS+=	-DTARGET=\"${TARGET}\"
d19 13
@


1.1
log
@Restructure the binutils hierarchy somewhat in order to better
support building it for variant architectures.  It was already
becoming clear that the former structure was too rigid and didn't
scale well.

The usual sort of makefile magic arranges to .include an architecture
specific makefile "Makefile.${MACHINE_ARCH}" in each directory
where it exists.  Also, sources will be found in each subdirectory
"${MACHINE_ARCH}" that exists.  This is all taken care of automatically
by the top level "Makefile.inc0".

This all seems to work right for the i386 now.  I have also converted
those alpha pieces already present to the new schema as best I
could.

Also: change the BINDIR on the i386 to /usr/libexec/elf for "ar"
and "ranlib".  They are not object format independent enough to
put into /usr/bin.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.2 1998/03/08 08:08:39 peter Exp $
d12 1
a12 1
		ldgram.c ldlang.c ldlex.l ldmain.c ldmisc.c \
a19 1
CLEANFILES+=	ldgram.c ldgram.h ldlex.c
a20 5

beforedepend: ldgram.c ldgram.h ldlex.c

ldgram.c ldgram.h: ldgram.y
	${YACC} ${YFLAGS} -o ${.TARGET:S/.h$/.c/} ${.ALLSRC}
@
