* gdb.base/list.exp: Add expect patterns for output from
[deliverable/binutils-gdb.git] / gas / mpw-config.in
1 # Configuration fragment for GAS.
2
3 Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
4
5 # The following works for many configurations, though not all.
6
7 Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
8
9 Set TDEFINES ""
10
11 If "{target_canonical}" =~ /m68k-apple-macos/
12 Set obj_format "coff"
13 Else If "{target_canonical}" =~ /ppc-apple-macos/
14 Set obj_format "xcoff"
15 Else If "{target_canonical}" =~ /sh-hitachi-hms/
16 Set obj_format "coff"
17 Else If "{target_canonical}" =~ /mips-idt-ecoff/
18 Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN'
19 End If
20
21 forward-include "{srcdir}"config:tc-{target_arch}.c targ-cpu.c
22 forward-include "{srcdir}"config:tc-{target_arch}.h targ-cpu.h
23
24 forward-include "{srcdir}"config:obj-{obj_format}.c obj-format.c
25 forward-include "{srcdir}"config:obj-{obj_format}.h obj-format.h
26
27 # Default emulation.
28
29 forward-include "{srcdir}"config:te-generic.h targ-env.h
30
31 # Special cases for float handling.
32
33 If "{target_arch}" =~ /ns32k/
34 forward-include "{srcdir}"config:atof-ns32k.c atof-targ.c
35 Else If "{target_arch}" =~ /tahoe/
36 forward-include "{srcdir}"config:atof-tahoe.c atof-targ.c
37 Else If "{target_arch}" =~ /vax/
38 forward-include "{srcdir}"config:atof-vax.c atof-targ.c
39 Else
40 # Use IEEE by default.
41 forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
42 End If
43
44 Echo '# From mpw-config.in' > "{o}"mk.tmp
45
46 Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
47 Echo "TDEFINES = " {TDEFINES} >> "{o}"mk.tmp
48
49 Echo '# End from mpw-config.in' >> "{o}"mk.tmp
This page took 0.031367 seconds and 4 git commands to generate.