1994-01-04 22:14:04 +01:00
|
|
|
# Configuration fragment for GAS.
|
|
|
|
|
1994-06-27 01:51:45 +02:00
|
|
|
Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
|
|
|
|
|
1995-03-18 01:50:51 +01:00
|
|
|
# The following works for many configurations, though not all.
|
1994-06-27 01:51:45 +02:00
|
|
|
|
1994-12-13 04:52:01 +01:00
|
|
|
Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
|
|
|
|
|
1995-06-16 02:07:45 +02:00
|
|
|
Set bfd_gas no
|
|
|
|
|
1995-03-18 01:50:51 +01:00
|
|
|
Set TDEFINES ""
|
1994-12-13 04:52:01 +01:00
|
|
|
|
|
|
|
If "{target_canonical}" =~ /m68k-apple-macos/
|
|
|
|
Set obj_format "coff"
|
1995-06-16 02:07:45 +02:00
|
|
|
Set TDEFINES '-d M68KCOFF'
|
1994-12-13 04:52:01 +01:00
|
|
|
Else If "{target_canonical}" =~ /ppc-apple-macos/
|
|
|
|
Set obj_format "xcoff"
|
1995-06-16 02:07:45 +02:00
|
|
|
Set bfd_gas yes
|
|
|
|
Else If "{target_canonical}" =~ /i386-unknown-go32/
|
1994-12-13 04:52:01 +01:00
|
|
|
Set obj_format "coff"
|
1995-06-16 02:07:45 +02:00
|
|
|
Set TDEFINES '-d I386COFF'
|
|
|
|
Else If "{target_canonical}" =~ /m68k-unknown-coff/
|
|
|
|
Set TDEFINES '-d M68KCOFF'
|
1994-12-13 04:52:01 +01:00
|
|
|
Else If "{target_canonical}" =~ /mips-idt-ecoff/
|
1995-06-16 02:07:45 +02:00
|
|
|
Set bfd_gas yes
|
1994-12-13 04:52:01 +01:00
|
|
|
Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN'
|
1995-06-16 02:07:45 +02:00
|
|
|
Else If "{target_canonical}" =~ /sh-hitachi-hms/
|
|
|
|
Set obj_format "coff"
|
|
|
|
forward-include "{srcroot}"opcodes:sh-opc.h 'opcodes/sh-opc.h'
|
1994-12-13 04:52:01 +01:00
|
|
|
End If
|
1994-06-27 01:51:45 +02:00
|
|
|
|
|
|
|
forward-include "{srcdir}"config:tc-{target_arch}.c targ-cpu.c
|
|
|
|
forward-include "{srcdir}"config:tc-{target_arch}.h targ-cpu.h
|
|
|
|
|
1994-12-13 04:52:01 +01:00
|
|
|
forward-include "{srcdir}"config:obj-{obj_format}.c obj-format.c
|
|
|
|
forward-include "{srcdir}"config:obj-{obj_format}.h obj-format.h
|
1994-06-27 01:51:45 +02:00
|
|
|
|
|
|
|
# Default emulation.
|
|
|
|
|
|
|
|
forward-include "{srcdir}"config:te-generic.h targ-env.h
|
|
|
|
|
1994-12-13 04:52:01 +01:00
|
|
|
# Special cases for float handling.
|
|
|
|
|
1994-06-27 01:51:45 +02:00
|
|
|
If "{target_arch}" =~ /ns32k/
|
|
|
|
forward-include "{srcdir}"config:atof-ns32k.c atof-targ.c
|
|
|
|
Else If "{target_arch}" =~ /tahoe/
|
|
|
|
forward-include "{srcdir}"config:atof-tahoe.c atof-targ.c
|
|
|
|
Else If "{target_arch}" =~ /vax/
|
|
|
|
forward-include "{srcdir}"config:atof-vax.c atof-targ.c
|
|
|
|
Else
|
|
|
|
# Use IEEE by default.
|
|
|
|
forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
|
|
|
|
End If
|
1994-12-13 04:52:01 +01:00
|
|
|
|
1995-03-18 01:50:51 +01:00
|
|
|
Echo '# From mpw-config.in' > "{o}"mk.tmp
|
1994-12-13 04:52:01 +01:00
|
|
|
|
|
|
|
Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
|
1995-06-16 02:07:45 +02:00
|
|
|
|
|
|
|
If "{bfd_gas}" =~ /yes/
|
|
|
|
Echo "HACK_O_RAMA = BFD_ASSEMBLER" >> "{o}"mk.tmp
|
|
|
|
Else
|
|
|
|
Echo "HACK_O_RAMA = MANY_SEGMENTS" >> "{o}"mk.tmp
|
|
|
|
End If
|
|
|
|
|
1995-03-18 01:50:51 +01:00
|
|
|
Echo "TDEFINES = " {TDEFINES} >> "{o}"mk.tmp
|
1994-12-13 04:52:01 +01:00
|
|
|
|
1995-03-18 01:50:51 +01:00
|
|
|
Echo '# End from mpw-config.in' >> "{o}"mk.tmp
|