Commit | Line | Data |
---|---|---|
ea838f99 SS |
1 | # Configuration fragment for GAS. |
2 | ||
9e4eebc2 SS |
3 | Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'` |
4 | ||
a23e2b7c | 5 | # The following works for many configurations ... |
9e4eebc2 | 6 | |
a23e2b7c SS |
7 | Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'` |
8 | ||
9 | # ... but not all. | |
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 | |
9e4eebc2 SS |
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 | ||
a23e2b7c SS |
24 | forward-include "{srcdir}"config:obj-{obj_format}.c obj-format.c |
25 | forward-include "{srcdir}"config:obj-{obj_format}.h obj-format.h | |
9e4eebc2 SS |
26 | |
27 | # Default emulation. | |
28 | ||
29 | forward-include "{srcdir}"config:te-generic.h targ-env.h | |
30 | ||
a23e2b7c SS |
31 | # Special cases for float handling. |
32 | ||
9e4eebc2 SS |
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 | |
a23e2b7c SS |
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 | ||
48 | Echo '# End from mpw-config.in' >> "{o}"mk.tmp |