aboutsummaryrefslogtreecommitdiff
path: root/bfd/mpw-config.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-12-13 03:34:28 +0000
committerStan Shebs <shebs@codesourcery.com>1994-12-13 03:34:28 +0000
commit1d3c6d87ba4b21e40ef79b6eacfc64845e62afcb (patch)
tree5c73fd67266b7a1ba62dfd0cd4eafad55244f24e /bfd/mpw-config.in
parente025097f56a56b434d43fc5935a022ce809987cb (diff)
downloadgdb-1d3c6d87ba4b21e40ef79b6eacfc64845e62afcb.zip
gdb-1d3c6d87ba4b21e40ef79b6eacfc64845e62afcb.tar.gz
gdb-1d3c6d87ba4b21e40ef79b6eacfc64845e62afcb.tar.bz2
* mpw-config.in: Edit the BFD version into bfd.h.
(m68k-apple-macos, ppc-apple-macos): New targets. * mpw-make.in: Remove use of gC in rules, add srcdir pathnames to more files.
Diffstat (limited to 'bfd/mpw-config.in')
-rw-r--r--bfd/mpw-config.in25
1 files changed, 19 insertions, 6 deletions
diff --git a/bfd/mpw-config.in b/bfd/mpw-config.in
index b70c2f7..b04a017 100644
--- a/bfd/mpw-config.in
+++ b/bfd/mpw-config.in
@@ -2,13 +2,26 @@
forward-include "{srcdir}"hosts:mpw.h sysdep.h
-sed -e 's/@WORDSIZE@/32/' {srcdir}bfd-in2.h >bfd.h-new
+sed -e 's/@WORDSIZE@/32/' -e "s/@VERSION@/`Catenate {srcdir}VERSION`/" {srcdir}bfd-in2.h >bfd.h-new
MoveIfChange bfd.h-new bfd.h
-If "{target_canonical}" =~ /m68k-aout/
+Echo '# From mpw-config.in' > "{o}"mk.tmp
+
+If "{target_canonical}" =~ /m68k-apple-macos/
+ Echo 'WORDSIZE = 32' >> "{o}"mk.tmp
+ Echo 'BFD_BACKENDS = "{o}"coff-m68k.c.o "{o}"cofflink.c.o' >>"{o}"mk.tmp
+ Echo 'BFD_MACHINES = "{o}"cpu-m68k.c.o' >>"{o}"mk.tmp
+ Echo 'TDEFAULTS = -d DEFAULT_VECTOR=m68kcoff_vec -d SELECT_VECS=&m68kcoff_vec -d SELECT_ARCHITECTURES=bfd_m68k_arch' >> "{o}"mk.tmp
+Else If "{target_canonical}" =~ /ppc-apple-macos/
+ Echo 'WORDSIZE = 32' >> "{o}"mk.tmp
+ Echo 'BFD_BACKENDS = "{o}"elf32-ppc.c.o "{o}"elf32.c.o' >> "{o}"mk.tmp
+ Echo 'BFD_MACHINES = "{o}"cpu-powerpc.c.o' >>"{o}"mk.tmp
+ Echo 'TDEFAULTS = -d DEFAULT_VECTOR=bfd_elf32_powerpc_vec -d SELECT_VECS= -d SELECT_ARCHITECTURES=bfd_ppc_arch' >> "{o}"mk.tmp
Else If "{target_canonical}" =~ /mips-idt-ecoff/
- Echo 'WORDSIZE = 32' >"{objdir}"mk.tmp
- Echo 'BFD_BACKENDS = "{o}"coff-mips.c.o "{o}"ecoff.c.o "{o}"ecofflink.c.o' >>"{objdir}"mk.tmp
- Echo 'BFD_MACHINES = "{o}"cpu-mips.c.o' >>"{objdir}"mk.tmp
- Echo 'TDEFAULTS = -d DEFAULT_VECTOR=ecoff_big_vec -d SELECT_VECS=&ecoff_big_vec,&ecoff_little_vec -d SELECT_ARCHITECTURES=bfd_mips_arch' >>"{objdir}"mk.tmp
+ Echo 'WORDSIZE = 32' >> "{o}"mk.tmp
+ Echo 'BFD_BACKENDS = "{o}"coff-mips.c.o "{o}"ecoff.c.o "{o}"ecofflink.c.o' >> "{o}"mk.tmp
+ Echo 'BFD_MACHINES = "{o}"cpu-mips.c.o' >> "{o}"mk.tmp
+ Echo 'TDEFAULTS = -d DEFAULT_VECTOR=ecoff_big_vec -d SELECT_VECS=&ecoff_big_vec,&ecoff_little_vec -d SELECT_ARCHITECTURES=bfd_mips_arch' >> "{o}"mk.tmp
End If
+
+Echo '# End from mpw-config.in' >> "{o}"mk.tmp