head	1.3;
access;
symbols
	jb_2_8_1:1.1.1.1
	JB:1.1.1;
locks; strict;
comment	@# @;


1.3
date	98.03.12.02.54.53;	author jdp;	state dead;
branches;
next	1.2;

1.2
date	98.03.09.06.07.27;	author jb;	state Exp;
branches;
next	1.1;

1.1
date	98.03.09.00.33.25;	author jb;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.03.09.00.33.25;	author jb;	state Exp;
branches;
next	;


desc
@@


1.3
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
@#
# $Id: Makefile,v 1.2 1998/03/09 06:07:27 jb Exp $
#

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/ld

EMULATION=	elf64alpha
LDSCRIPTS=	elf64alpha.x elf64alpha.xbn elf64alpha.xn elf64alpha.xr \
		elf64alpha.xs elf64alpha.xu alpha.x alpha.xbn \
		alpha.xn alpha.xr alpha.xu

PROG=		ld
BINDIR=		/usr/bin
SCRIPTDIR=	/usr/libdata/ldscripts
SRCS=		ldgram.c eelf64alpha.c ealpha.c ldcref.c \
		ldctor.c  ldemul.c ldexp.c ldfile.c ldlang.c \
		ldlex.l ldmain.c ldmisc.c ldver.c ldwrite.c \
		lexsup.c mri.c
CFLAGS+=	-DDEFAULT_EMULATION=\"${EMULATION}\"
CFLAGS+=	-DSCRIPTDIR=\"${DESTDIR}/usr/libdata\"
CFLAGS+=	-DTARGET=\"${TARGET}\"
CFLAGS+=	-I${SRCDIR}/ld
LDADD+=		-L${RELTOP}/libbfd -lbfd
LDADD+=		-L${RELTOP}/libiberty -liberty
CLEANFILES+=	eelf64alpha.c ealpha.c ldgram.c ldgram.h ldlex.c
CLEANDIRS+=	ldscripts

beforedepend: eelf64alpha.c ealpha.c ldgram.c ldgram.h ldlex.c

eelf64alpha.c:	emulparams/elf64alpha.sh emultempl/elf32.em \
		scripttempl/elf.sc genscripts.sh emultempl/stringify.sed
	sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \
	    ${HOST} ${TARGET} ${TARGET} ${EMULATION} "" \
	    ${EMULATION} ${TARGET}

ealpha.c:	emulparams/elf64alpha.sh emultempl/elf32.em \
		scripttempl/elf.sc genscripts.sh emultempl/stringify.sed
	sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \
	    ${HOST} ${TARGET} ${TARGET} ${EMULATION} "" \
	    alpha alpha-unknown-freebsd

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

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

.include <bsd.prog.mk>
@


1.2
log
@We want ld in /usr/bin, not some weird and wonderful hiding place
that might be inspired by some creation from Intel. Doh.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.1.1.1 1998/03/09 00:33:25 jb Exp $
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.1.1.1 1998/03/01 23:41:02 jdp Exp $
d15 1
a15 1
BINDIR=		/usr/libexec/elf
@


1.1.1.1
log
@Import of alpha specific bits to configure binutils for FreeBSD/Alpha.
Other changes that affect the i386-elf work are on hold to avoid
stuffing up other work in progress.
@
text
@@
