aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorDavid Henkel-Wallace <gumby@cygnus>1994-06-08 05:05:21 +0000
committerDavid Henkel-Wallace <gumby@cygnus>1994-06-08 05:05:21 +0000
commitb5775df3dce36c9eb7c88fd865183b8bc4b9636d (patch)
tree06dea482ca3bddc30cf246a260f3f5332740641b /binutils
parent67c2d8c8d7c87ea3282512ecb500f401557f6d6e (diff)
downloadfsf-binutils-gdb-b5775df3dce36c9eb7c88fd865183b8bc4b9636d.zip
fsf-binutils-gdb-b5775df3dce36c9eb7c88fd865183b8bc4b9636d.tar.gz
fsf-binutils-gdb-b5775df3dce36c9eb7c88fd865183b8bc4b9636d.tar.bz2
rs6k lynx changes
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog9
-rw-r--r--binutils/Makefile.in5
-rw-r--r--binutils/configure.in63
3 files changed, 76 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8e10150..f0b841b 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,12 @@
+Mon Jun 6 21:36:43 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
+
+ * configure.in: if this is an rs6000 (and we're not building for
+ any other bfd targets) then build only nm (collect needs it on
+ rs6000-lynx).
+
+ * Makefile.in: define TOOL_PROGS which the list of programes to
+ install in $tooldir -- replaces a hard-coded list.
+
Fri Jun 3 10:59:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (display_target_list): Remove unused local ok.
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index 56e844d..e7fdee3 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -111,6 +111,9 @@ STAGESTUFF = $(PROGS) *.o
# Files that can be generated, but should be in the distribution.
DISTSTUFF=arparse.c arlex.c nlmheader.c sysinfo.c syslex.c info
+# Stuff that goes in tooldir/ if appropriate
+TOOL_PROGS = nm.new strip.new ar ranlib
+
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd
INCDIR = $(BASEDIR)/include
@@ -495,7 +498,7 @@ install: all $(DEMANGLER_PROG).1
done
-if [ -d $(tooldir) ]; then \
if [ -d $(tooldir)/bin ]; then true; else mkdir $(tooldir)/bin; fi; \
- for i in nm.new strip.new ar ranlib; do \
+ for i in $(TOOL_PROGS) ; do \
j=`echo $$i | sed -e 's/.new//'`; \
rm -f $(tooldir)/bin/$$j; \
k=`t='$(program_transform_name)'; echo $$j | sed -e s/x/x/ $$t`; \
diff --git a/binutils/configure.in b/binutils/configure.in
index 00806f8..649e5d5 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -10,9 +10,72 @@ configdirs="testsuite"
# per-host:
+. ${srcdir}/../bfd/configure.host
+
host_makefile_frag=
if [ -f ${srcdir}/../bfd/config/${my_host}.mh ] ; then
host_makefile_frag=../bfd/config/${my_host}.mh
fi
# per-target:
+
+# Canonicalize the secondary target names.
+if [ -n "$with_targets" ]; then
+ for targ in `echo $with_targets | sed 's/,/ /g'`
+ do
+ result=`$configsub $targ 2>/dev/null`
+ if [ -n "$result" ]; then
+ canon_targets="$canon_targets $result"
+ else
+ # Allow targets that config.sub doesn't recognize, like "all".
+ canon_targets="$canon_targets $targ"
+ fi
+ done
+else
+# If our target is rs6000 _and nothing else_ then we build only nm!
+ case $target in
+ rs6000-*-lynx*) target_makefile_frag=config/rslynx ;;
+ esac
+fi
+
+all_targets=false
+build_nlmconv=false
+build_srconv=false
+
+for targ in $target $canon_targets
+do
+ bfd_target=`$srcdir/../bfd/config.bfd $targ`
+
+ if [ "x$bfd_target" = "xall" ]; then
+ all_targets=true
+ build_nlmconv=true
+ build_srconv=true
+ else
+ case $targ in
+ *-*-netware*) build_nlmconv=true ;;
+ esac
+
+ case $targ in
+ *-*-hms*) build_srconv=true ;;
+ esac
+ fi
+done
+
+# We don't do any links based on the target system, just makefile config.
+
+# post-target:
+
+rm -f Makefile.tmp Makefile.2
+mv Makefile Makefile.tmp
+
+if [ "x${build_nlmconv}" = "xtrue" ]; then
+ echo 'BUILD_NLMCONV = $(NLMCONV_PROG)' >> Makefile.2
+fi
+
+if [ "x${build_srconv}" = "xtrue" ]; then
+ echo 'BUILD_SRCONV = $(SRCONV_PROG)' >> Makefile.2
+fi
+
+cat Makefile.tmp >> Makefile.2
+rm -f Makefile.tmp
+mv Makefile.2 Makefile