* mpw-config.in: Parse target and use to generate forward includes
[external/binutils.git] / gas / mpw-config.in
1 # Configuration fragment for GAS.
2
3 forward-include {srcdir}config:ho-mpw.h host.h 
4
5 Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
6
7 # (should canonicalize arch name) */
8
9 Set target_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
10
11 forward-include "{srcdir}"config:tc-{target_arch}.c targ-cpu.c
12 forward-include "{srcdir}"config:tc-{target_arch}.h targ-cpu.h
13
14 forward-include "{srcdir}"config:obj-{target_format}.c obj-format.c
15 forward-include "{srcdir}"config:obj-{target_format}.h obj-format.h
16
17 # Default emulation.
18
19 forward-include "{srcdir}"config:te-generic.h targ-env.h
20
21 If "{target_arch}" =~ /ns32k/
22         forward-include "{srcdir}"config:atof-ns32k.c atof-targ.c
23 Else If "{target_arch}" =~ /tahoe/
24         forward-include "{srcdir}"config:atof-tahoe.c atof-targ.c
25 Else If "{target_arch}" =~ /vax/
26         forward-include "{srcdir}"config:atof-vax.c atof-targ.c
27 Else
28         # Use IEEE by default.
29         forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
30 End If