aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorHeinz G. Seidl <hgs@cygnus>1992-01-24 22:11:28 +0000
committerHeinz G. Seidl <hgs@cygnus>1992-01-24 22:11:28 +0000
commit2cbe4c5f9e97dff6786352e1867c3c6afd383258 (patch)
treef6b0d00bf03ab36bdb7a7b53464428043d5ed003 /ld
parentc611e285bd68ba6f2fa2f3063a002ace9b8f626f (diff)
downloadgdb-2cbe4c5f9e97dff6786352e1867c3c6afd383258.zip
gdb-2cbe4c5f9e97dff6786352e1867c3c6afd383258.tar.gz
gdb-2cbe4c5f9e97dff6786352e1867c3c6afd383258.tar.bz2
install ld in the gcclibdir if present
Diffstat (limited to 'ld')
-rw-r--r--ld/Makefile.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 6ecdade..62db9e2 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -38,10 +38,12 @@ man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
-infodir = $(prefix)/info
+infodir = $(datadir)/info
includedir = $(prefix)/include
docdir = $(datadir)/doc
+gcclibdir = $(libdir)/gcc/$(target_alias)
+
SHELL = /bin/sh
INSTALL = install -c
@@ -200,6 +202,10 @@ ldgram.h ldgram.c: ldgram.y
ldlex.c: ldlex.l
lex -t $(VPATH)/ldlex.l >ldlex.c
+# Main needs to know the default emulation type, too.
+ldmain.o: ldmain.c
+ $(CC) $(CFLAGS) -DDEFAULT_EMULATION=$(EMUL) -c $<
+
# These all start with ld__ so 'make clean' can find them.
ld__gld.c: $(srcdir)/ldtemplate
@@ -453,7 +459,9 @@ objdump:objdump.c
install: $(LD_PROG)
$(INSTALL_PROGRAM) ld.new $(bindir)/ld
-# $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld
+ -if [ -d "$(gcclibdir)" ] ; then \
+ $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld ; \
+ fi
install-info: info
for i in ld.info* ; do \