* coff-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.
[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 bfd_gas no
10
11 Set TDEFINES ""
12
13 If "{target_canonical}" =~ /m68k-apple-macos/
14 Set obj_format "coff"
15 Set TDEFINES '-d M68KCOFF'
16 Else If "{target_canonical}" =~ /ppc-apple-macos/
17 Set obj_format "xcoff"
18 Set bfd_gas yes
19 Else If "{target_canonical}" =~ /i386-unknown-go32/
20 Set obj_format "coff"
21 Set TDEFINES '-d I386COFF'
22 Else If "{target_canonical}" =~ /m68k-unknown-coff/
23 Set TDEFINES '-d M68KCOFF'
24 Else If "{target_canonical}" =~ /mips-idt-ecoff/
25 Set bfd_gas yes
26 Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN'
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'
30 End If
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
35 forward-include "{srcdir}"config:obj-{obj_format}.c obj-format.c
36 forward-include "{srcdir}"config:obj-{obj_format}.h obj-format.h
37
38 # Default emulation.
39
40 forward-include "{srcdir}"config:te-generic.h targ-env.h
41
42 # Special cases for float handling.
43
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
54
55 Echo '# From mpw-config.in' > "{o}"mk.tmp
56
57 Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
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
65 Echo "TDEFINES = " {TDEFINES} >> "{o}"mk.tmp
66
67 Echo '# End from mpw-config.in' >> "{o}"mk.tmp
This page took 0.034591 seconds and 4 git commands to generate.