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/.*-.*-//'`
11 If "{target_canonical}" =~ /m68k-apple-macos/
13 Else If "{target_canonical}" =~ /ppc-apple-macos/
14 Set obj_format "xcoff"
15 Else If "{target_canonical}" =~ /sh-hitachi-hms/
17 Else If "{target_canonical}" =~ /mips-idt-ecoff/
18 Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN'
21 forward-include "{srcdir}"config:tc-{target_arch}.c targ-cpu.c
22 forward-include "{srcdir}"config:tc-{target_arch}.h targ-cpu.h
24 forward-include "{srcdir}"config:obj-{obj_format}.c obj-format.c
25 forward-include "{srcdir}"config:obj-{obj_format}.h obj-format.h
29 forward-include "{srcdir}"config:te-generic.h targ-env.h
31 # Special cases for float handling.
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
40 # Use IEEE by default.
41 forward-include "{srcdir}"config:atof-ieee.c atof-targ.c
44 Echo '# From mpw-config.in' > "{o}"mk.tmp
46 Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
47 Echo "TDEFINES = " {TDEFINES} >> "{o}"mk.tmp
49 Echo '# End from mpw-config.in' >> "{o}"mk.tmp