* expr.h (operatorT): Remove comma after last enumerator value.
[deliverable/binutils-gdb.git] / gas / mpw-config.in
CommitLineData
ea838f99
SS
1# Configuration fragment for GAS.
2
9e4eebc2
SS
3Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
4
f64fd87f 5# The following works for many configurations, though not all.
9e4eebc2 6
a23e2b7c
SS
7Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
8
d21041b3
SS
9Set bfd_gas no
10
f64fd87f 11Set TDEFINES ""
a23e2b7c
SS
12
13If "{target_canonical}" =~ /m68k-apple-macos/
14 Set obj_format "coff"
d21041b3 15 Set TDEFINES '-d M68KCOFF'
a23e2b7c
SS
16Else If "{target_canonical}" =~ /ppc-apple-macos/
17 Set obj_format "xcoff"
d21041b3
SS
18 Set bfd_gas yes
19Else If "{target_canonical}" =~ /i386-unknown-go32/
a23e2b7c 20 Set obj_format "coff"
d21041b3
SS
21 Set TDEFINES '-d I386COFF'
22Else If "{target_canonical}" =~ /m68k-unknown-coff/
23 Set TDEFINES '-d M68KCOFF'
a23e2b7c 24Else If "{target_canonical}" =~ /mips-idt-ecoff/
d21041b3 25 Set bfd_gas yes
a23e2b7c 26 Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN'
d21041b3
SS
27Else If "{target_canonical}" =~ /sh-hitachi-hms/
28 Set obj_format "coff"
29 forward-include "{srcroot}"opcodes:sh-opc.h 'opcodes/sh-opc.h'
a23e2b7c 30End If
9e4eebc2
SS
31
32forward-include "{srcdir}"config:tc-{target_arch}.c targ-cpu.c
33forward-include "{srcdir}"config:tc-{target_arch}.h targ-cpu.h
34
a23e2b7c
SS
35forward-include "{srcdir}"config:obj-{obj_format}.c obj-format.c
36forward-include "{srcdir}"config:obj-{obj_format}.h obj-format.h
9e4eebc2
SS
37
38# Default emulation.
39
40forward-include "{srcdir}"config:te-generic.h targ-env.h
41
a23e2b7c
SS
42# Special cases for float handling.
43
9e4eebc2
SS
44If "{target_arch}" =~ /ns32k/
45 forward-include "{srcdir}"config:atof-ns32k.c atof-targ.c
46Else If "{target_arch}" =~ /tahoe/
47 forward-include "{srcdir}"config:atof-tahoe.c atof-targ.c
48Else If "{target_arch}" =~ /vax/
49 forward-include "{srcdir}"config:atof-vax.c atof-targ.c
50Else
51 # Use IEEE by default.
52 forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
53End If
a23e2b7c 54
f64fd87f 55Echo '# From mpw-config.in' > "{o}"mk.tmp
a23e2b7c
SS
56
57Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
d21041b3
SS
58
59If "{bfd_gas}" =~ /yes/
60 Echo "HACK_O_RAMA = BFD_ASSEMBLER" >> "{o}"mk.tmp
61Else
62 Echo "HACK_O_RAMA = MANY_SEGMENTS" >> "{o}"mk.tmp
63End If
64
f64fd87f 65Echo "TDEFINES = " {TDEFINES} >> "{o}"mk.tmp
a23e2b7c 66
f64fd87f 67Echo '# End from mpw-config.in' >> "{o}"mk.tmp
This page took 0.079371 seconds and 4 git commands to generate.