aboutsummaryrefslogtreecommitdiff
path: root/gas/mpw-config.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-06-16 00:07:45 +0000
committerStan Shebs <shebs@codesourcery.com>1995-06-16 00:07:45 +0000
commitd21041b3e20375ba2139d2c21a5e4d44ecdf26f2 (patch)
tree9069fcd01de5cd061f563566843f087d679fe82d /gas/mpw-config.in
parente33c359dcbac4cc48ee4e9facde3bd02ae29905c (diff)
downloadgdb-d21041b3e20375ba2139d2c21a5e4d44ecdf26f2.zip
gdb-d21041b3e20375ba2139d2c21a5e4d44ecdf26f2.tar.gz
gdb-d21041b3e20375ba2139d2c21a5e4d44ecdf26f2.tar.bz2
* config/obj-coff.c: Don't use "bfd/" when including libbfd.h
and libcoff.h. (fill_section): Call PROGRESS. * Makefile.in (INCLUDES): Add bfd srcdir. * mpw-config.in: Add bfd_gas flag and set for each config. (i386-unknown-go32, m68k-unknown-coff): Recognize. * mpw-make.in (HACK_O_RAMA, OBJ_COFF_OMIT_TIMESTAMP): Add to config.h.
Diffstat (limited to 'gas/mpw-config.in')
-rw-r--r--gas/mpw-config.in20
1 files changed, 19 insertions, 1 deletions
diff --git a/gas/mpw-config.in b/gas/mpw-config.in
index 4005dc3..320daac 100644
--- a/gas/mpw-config.in
+++ b/gas/mpw-config.in
@@ -6,16 +6,27 @@ Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'`
+Set bfd_gas no
+
Set TDEFINES ""
If "{target_canonical}" =~ /m68k-apple-macos/
Set obj_format "coff"
+ Set TDEFINES '-d M68KCOFF'
Else If "{target_canonical}" =~ /ppc-apple-macos/
Set obj_format "xcoff"
-Else If "{target_canonical}" =~ /sh-hitachi-hms/
+ Set bfd_gas yes
+Else If "{target_canonical}" =~ /i386-unknown-go32/
Set obj_format "coff"
+ Set TDEFINES '-d I386COFF'
+Else If "{target_canonical}" =~ /m68k-unknown-coff/
+ Set TDEFINES '-d M68KCOFF'
Else If "{target_canonical}" =~ /mips-idt-ecoff/
+ Set bfd_gas yes
Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN'
+Else If "{target_canonical}" =~ /sh-hitachi-hms/
+ Set obj_format "coff"
+ forward-include "{srcroot}"opcodes:sh-opc.h 'opcodes/sh-opc.h'
End If
forward-include "{srcdir}"config:tc-{target_arch}.c targ-cpu.c
@@ -44,6 +55,13 @@ End If
Echo '# From mpw-config.in' > "{o}"mk.tmp
Echo 'VERSION = ' `Search 'VERSION=' "{srcdir}"Makefile.in | sed -e 's/.*VERSION=\(.*\)/\1/'` >> "{o}"mk.tmp
+
+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
+
Echo "TDEFINES = " {TDEFINES} >> "{o}"mk.tmp
Echo '# End from mpw-config.in' >> "{o}"mk.tmp