aboutsummaryrefslogtreecommitdiff
path: root/bfd/Makefile.in
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-07-06 20:27:25 +0000
committerKen Raeburn <raeburn@cygnus>1993-07-06 20:27:25 +0000
commitc812942fc5ee69a02640b6f12f6e238cfc2eb004 (patch)
tree406829be9672e4f0317c1e37a1418be30aba3ecd /bfd/Makefile.in
parent70e009144e6781fe959c58dbea9e3803ca25cbe4 (diff)
downloadgdb-c812942fc5ee69a02640b6f12f6e238cfc2eb004.zip
gdb-c812942fc5ee69a02640b6f12f6e238cfc2eb004.tar.gz
gdb-c812942fc5ee69a02640b6f12f6e238cfc2eb004.tar.bz2
Hack to cut down compilations needed for minimal-bfd:
* Makefile.in (ALL_MACHINES): Renamed from BFD_MACHINES. (ofiles): New target. Build a list of unique file names, in case any got duplicated. (TARGETLIB): Use list of files from ofiles. * configure.in: Set BFD_MACHINES and BFD_BACKENDS depending on minimal-bfd flag and target makefile frag contents.
Diffstat (limited to 'bfd/Makefile.in')
-rw-r--r--bfd/Makefile.in21
1 files changed, 16 insertions, 5 deletions
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index b71ecc0..48a4f67 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -73,7 +73,7 @@ BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
archures.o core.o section.o format.o syms.o reloc.o init.o \
ctor.o seclet.o coffgen.o reloc16.o
-BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
+ALL_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o cpu-hppa.o \
cpu-z8k.o cpu-we32k.o cpu-h8500.o cpu-alpha.o cpu-sh.o
@@ -168,10 +168,21 @@ install-info: force
# HDEPFILES comes from the host config; TDEPFILES from the target config.
OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
-$(TARGETLIB): $(OFILES)
- rm -f $(TARGETLIB)
- $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
- $(RANLIB) $(TARGETLIB)
+ofiles : Makefile
+ rm -f ofiles2 ofiles ofiles3
+ cp /dev/null ofiles2
+ for i in $(OFILES) ; do \
+ echo $$i >> ofiles2 ; \
+ done
+ sort < ofiles2 | uniq > ofiles3
+ mv ofiles3 ofiles
+ rm -f ofiles2 ofiles3
+
+$(TARGETLIB): $(OFILES) ofiles
+ rm -f $(TARGETLIB)
+ @echo ofiles = `cat ofiles`
+ $(AR) $(AR_FLAGS) $(TARGETLIB) `cat ofiles`
+ $(RANLIB) $(TARGETLIB)
# When compiling archures.c and targets.c, supply the default target
# info from configure.