aboutsummaryrefslogtreecommitdiff
path: root/gas/mpw-config.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-06-26 23:51:45 +0000
committerStan Shebs <shebs@codesourcery.com>1994-06-26 23:51:45 +0000
commit9e4eebc20768c6a9b7e81a3d42f1dac9b7abe162 (patch)
tree733b3e11f71f040226c0ecf7362146d8dab5b1ae /gas/mpw-config.in
parenta6148eeb0d09ff694aea0781f335ee86917d0179 (diff)
downloadgdb-9e4eebc20768c6a9b7e81a3d42f1dac9b7abe162.zip
gdb-9e4eebc20768c6a9b7e81a3d42f1dac9b7abe162.tar.gz
gdb-9e4eebc20768c6a9b7e81a3d42f1dac9b7abe162.tar.bz2
* mpw-config.in: Parse target and use to generate forward includes
to tc-, obj-, and atof- files, use te-generic.h for emulation. * mpw-make.in (VERSION): Define. (as.c): Compile with GCC. (TARG_OBJECTS, CLIBS): Define. (as.new): Use LDFLAGS, TARG_OBJECTS, CLIBS and EXTRALIBS in link command. (config.h, config-stamp): Build. config/ho-mpw.h (HOST_SPECIAL_INIT): Define.
Diffstat (limited to 'gas/mpw-config.in')
-rw-r--r--gas/mpw-config.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/gas/mpw-config.in b/gas/mpw-config.in
index 1467c49..52506b8 100644
--- a/gas/mpw-config.in
+++ b/gas/mpw-config.in
@@ -1,3 +1,30 @@
# Configuration fragment for GAS.
forward-include {srcdir}config:ho-mpw.h host.h
+
+Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
+
+# (should canonicalize arch name) */
+
+Set target_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
+
+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
+
+# Default emulation.
+
+forward-include "{srcdir}"config:te-generic.h targ-env.h
+
+If "{target_arch}" =~ /ns32k/
+ forward-include "{srcdir}"config:atof-ns32k.c atof-targ.c
+Else If "{target_arch}" =~ /tahoe/
+ forward-include "{srcdir}"config:atof-tahoe.c atof-targ.c
+Else If "{target_arch}" =~ /vax/
+ forward-include "{srcdir}"config:atof-vax.c atof-targ.c
+Else
+ # Use IEEE by default.
+ forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
+End If