aboutsummaryrefslogtreecommitdiff
path: root/gas/mpw-config.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-12-13 03:52:01 +0000
committerStan Shebs <shebs@codesourcery.com>1994-12-13 03:52:01 +0000
commita23e2b7cdebb597ff654d1757fc580cce1120be3 (patch)
treebd9efe09883386f0180f4f51b5e73eb3f47fdfc6 /gas/mpw-config.in
parent4fd067b80d0226c8ee1a660e6badfd92a671c8aa (diff)
downloadgdb-a23e2b7cdebb597ff654d1757fc580cce1120be3.zip
gdb-a23e2b7cdebb597ff654d1757fc580cce1120be3.tar.gz
gdb-a23e2b7cdebb597ff654d1757fc580cce1120be3.tar.bz2
* mpw-config.in: Add mapping from configs to object file formats,
get VERSION from Makefile.in and add to mk.tmp. (mips-idt-ecoff) [TDEFINES]: Add TARGET_BYTES_BIG_ENDIAN. * mpw-make.in (VERSION, gC): Don't define. (ALL_CFLAGS): Remove -d flags. (config.h): Remove definition of MPW, add HAVE_STDARG_H, BFD_ASSEMBLER.
Diffstat (limited to 'gas/mpw-config.in')
-rw-r--r--gas/mpw-config.in28
1 files changed, 24 insertions, 4 deletions
diff --git a/gas/mpw-config.in b/gas/mpw-config.in
index f36bf7c..a6819f6 100644
--- a/gas/mpw-config.in
+++ b/gas/mpw-config.in
@@ -2,20 +2,34 @@
Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
-# (should canonicalize arch name) */
+# The following works for many configurations ...
-Set target_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
+Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
+
+# ... but not all.
+
+If "{target_canonical}" =~ /m68k-apple-macos/
+ Set obj_format "coff"
+Else If "{target_canonical}" =~ /ppc-apple-macos/
+ Set obj_format "xcoff"
+Else If "{target_canonical}" =~ /sh-hitachi-hms/
+ Set obj_format "coff"
+Else If "{target_canonical}" =~ /mips-idt-ecoff/
+ Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN'
+End If
forward-include "{srcdir}"config:tc-{target_arch}.c targ-cpu.c
forward-include "{srcdir}"config:tc-{target_arch}.h targ-cpu.h
-forward-include "{srcdir}"config:obj-{target_format}.c obj-format.c
-forward-include "{srcdir}"config:obj-{target_format}.h obj-format.h
+forward-include "{srcdir}"config:obj-{obj_format}.c obj-format.c
+forward-include "{srcdir}"config:obj-{obj_format}.h obj-format.h
# Default emulation.
forward-include "{srcdir}"config:te-generic.h targ-env.h
+# Special cases for float handling.
+
If "{target_arch}" =~ /ns32k/
forward-include "{srcdir}"config:atof-ns32k.c atof-targ.c
Else If "{target_arch}" =~ /tahoe/
@@ -26,3 +40,9 @@ Else
# Use IEEE by default.
forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
End If
+
+Echo '# From mpw-config.in' > "{o}"mk.tmp
+
+Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
+
+Echo '# End from mpw-config.in' >> "{o}"mk.tmp