aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-04-15 23:41:05 +0000
committerK. Richard Pixley <rich@cygnus>1991-04-15 23:41:05 +0000
commit8c32cf6e55a712a64e01a78a9b646a66c67543d2 (patch)
tree5ba108dd6b6cd5c813bb2330156db8fcbf674624 /ld/Makefile.in
parentf22eee0870c5f399dd30cc36d73263543d30437d (diff)
downloadgdb-8c32cf6e55a712a64e01a78a9b646a66c67543d2.zip
gdb-8c32cf6e55a712a64e01a78a9b646a66c67543d2.tar.gz
gdb-8c32cf6e55a712a64e01a78a9b646a66c67543d2.tar.bz2
Now handles multiple host and targets.
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r--ld/Makefile.in20
1 files changed, 17 insertions, 3 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 125f46b..7f4deb8 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -6,6 +6,18 @@
srcdir = .
+destdir = /usr/local
+
+version=`$(srcdir)/../gcc$(subdir)/gcc -dumpversion`
+prefix = $(destdir)
+bindir = $(prefix)/bin
+libdir = $(prefix)/lib
+libsubdir = $(libdir)/gcc/$(target)/$(version)
+
+INSTALL = install -c
+INSTALL_PROGRAM = $(INSTALL)
+INSTALL_FILE = $(INSTALL)
+
BASEDIR = ../..
HOSTDIR = ../$(HOST)/
INCLUDE = $(srcdir)/../include-cygnus
@@ -159,8 +171,7 @@ release:
objdump:objdump.c
install: $(PROGS)
- rm -f $G960BASE/bin/$(PROGS)
- cp $(PROGS) $$G960BASE/bin/gld960c
+ $(INSTALL_PROGRAM) ld.new $(libsubdir)/ld
#-----------------------------------------------------------------------------
# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
@@ -216,7 +227,10 @@ make:
Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
(cd $(srcdir) ; \
- ./configure `if [ "$(srcdir)" != "." ] ; then echo +f; fi` -host=$(host) $(target))
+ ./configure +destdir=$(destdir) \
+ +norecurse \
+ `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
+ $(host) +target=$(target))
### Local Variables: ***
### mode:fundamental ***