aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-04 21:38:46 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-04 21:38:46 +0000
commitc8c066f7e3121cafcf68b47ee96f6fdc19c23cb7 (patch)
treee0b85c1c7132f8804316e4aa97c68d4068678a36 /gnu/usr.bin/binutils
parenta9ab354c8d905ef7f857700cca09951735a8fe96 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index 011545f86c6a..de2f404e67e5 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.1 1998/03/12 02:55:20 jdp Exp $
+# $Id: Makefile,v 1.2 1998/05/04 16:31:41 bde Exp $
#
.include "../Makefile.inc0"
@@ -11,14 +11,25 @@ SCRIPTDIR= /usr/libdata/ldscripts
SRCS+= ldcref.c ldctor.c 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+= -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
CLEANDIRS+= ldscripts
+beforedepend: ldemul-list.h
+
+EMXFR=
+EMLST=
+.for _e in ${EMS}
+EMXFR+= extern ld_emulation_xfer_type ${_e};
+EMLST+= &${_e},
+.endfor
+
+ldemul-list.h:
+ echo "${EMXFR}" > ldemul-list.h
+ echo "#define EMULATION_LIST ${EMLST} 0" >> ldemul-list.h
+
afterinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}