1 # Configuration fragment for GAS.
3 Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
5 # The following works for many configurations, though not all.
7 Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
13 If "{target_canonical}" =~ /m68k-apple-macos/
15 Set TDEFINES '-d M68KCOFF'
16 Else If "{target_canonical}" =~ /ppc-apple-macos/
17 Set obj_format "xcoff"
19 Else If "{target_canonical}" =~ /i386-unknown-go32/
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/
26 Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN'
27 Else If "{target_canonical}" =~ /sh-hitachi-hms/
29 forward-include "{srcroot}"opcodes:sh-opc.h 'opcodes/sh-opc.h'
32 forward-include "{srcdir}"config:tc-{target_arch}.c targ-cpu.c
33 forward-include "{srcdir}"config:tc-{target_arch}.h targ-cpu.h
35 forward-include "{srcdir}"config:obj-{obj_format}.c obj-format.c
36 forward-include "{srcdir}"config:obj-{obj_format}.h obj-format.h
40 forward-include "{srcdir}"config:te-generic.h targ-env.h
42 # Special cases for float handling.
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
51 # Use IEEE by default.
52 forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
55 Echo '# From mpw-config.in' > "{o}"mk.tmp
57 Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
59 If "{bfd_gas}" =~ /yes/
60 Echo "HACK_O_RAMA = BFD_ASSEMBLER" >> "{o}"mk.tmp
62 Echo "HACK_O_RAMA = MANY_SEGMENTS" >> "{o}"mk.tmp
65 Echo "TDEFINES = " {TDEFINES} >> "{o}"mk.tmp
67 Echo '# End from mpw-config.in' >> "{o}"mk.tmp