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