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