* symtab.c, dbxread.c, stabsread.c: Fix up ANSI-C isms. Fix
[deliverable/binutils-gdb.git] / gdb / mpw-config.in
index 6c51e8bfcce7ba64d25670fc4db08715bae3353b..5e71ba810525264751fad60c992d7b7aa2d91d63 100644 (file)
@@ -1,10 +1,18 @@
 # Configuration fragment for GDB.
 
-forward-include "{srcdir}"config:m68k:xm-mpw.h xm.h
+If "{host_canonical}" =~ /m68k-apple-mpw/
+       forward-include "{srcdir}"config:m68k:xm-mpw.h xm.h
+       Set siow_lib '"{Libraries}"SIOW.o'
 
-forward-include "{srcdir}"config:m68k:xm-m68k.h 'm68k/xm-m68k.h'
+Else If "{host_canonical}" =~ /powerpc-apple-mpw/
+       forward-include "{srcdir}"config:powerpc:xm-mpw.h xm.h
+       Set siow_lib '"{PPCLibraries}"PPCSIOW.o'
 
-Set xdepfiles   '"{o}"mac-xdep.c.o'
+End If
+
+Set xdepfiles '"{o}"mac-xdep.c.o'
+
+Set enable_cflags ""
 
 # Make a copy of this file and give it a different name, so it
 # won't be confused with GDB's serial.h.
@@ -28,31 +36,56 @@ Else If "{target_canonical}" =~ /i386-unknown-go32/
        Set tdepfiles '"{o}"i386-tdep.c.o'
 
 Else If "{target_canonical}" =~ /mips-idt-ecoff/
-       forward-include "{srcdir}"config:mips:tm-idt.h tm.h
+       forward-include "{srcdir}"config:mips:tm-embed.h tm.h
        forward-include "{srcdir}"config:mips:tm-bigmips.h 'mips/tm-bigmips.h'
        forward-include "{srcdir}"config:mips:tm-mips.h 'mips/tm-mips.h'
        Set tdepfiles '"{o}"mips-tdep.c.o "{o}"remote-mips.c.o'
 
+# start-sanitize-gm
+Else If "{target_canonical}" =~ /mips-gm-magic/
+       forward-include "{srcdir}"config:mips:tm-embed.h tm.h
+       forward-include "{srcdir}"config:mips:tm-bigmips.h 'mips/tm-bigmips.h'
+       forward-include "{srcdir}"config:mips:tm-mips.h 'mips/tm-mips.h'
+       Set tdepfiles '"{o}"mips-tdep.c.o "{o}"remote-mips.c.o "{o}"gmagic.c.o'
+       If {host_cc} =~ /gcc/
+               Set enable_cflags '-DGENERAL_MAGIC'
+       Else
+               Set enable_cflags '-d GENERAL_MAGIC'
+       End If
+# end-sanitize-gm
+
 Else If "{target_canonical}" =~ /sh-hitachi-hms/
        forward-include "{srcdir}"config:sh:tm-sh.h tm.h
        Set tdepfiles '"{o}"sh-tdep.c.o'
+
 End If
 
-If "{target_canonical}" != "{host_canonical}"
+If "{target_canonical}" =~ /m68k-apple-macos/
+       forward-include "{srcdir}"config:m68k:nm-macos.h nm.h
+       Set natdepfiles '"{o}"mac-nat.c.o'
+
+Else If "{target_canonical}" =~ /powerpc-apple-macos/
+       forward-include "{srcdir}"config:powerpc:nm-macos.h nm.h
+       Set natdepfiles '"{o}"mac-nat.c.o'
+
+Else
        forward-include "{srcdir}"config:nm-empty.h nm.h
-       Set natdepfiles " "
+       Set natdepfiles ' '
+
 End If
 
 Echo '# From mpw-config.in'                             > "{o}"mk.tmp
 Echo "TDEPFILES = " {tdepfiles}                                >> "{o}"mk.tmp
 Echo "XDEPFILES = " {xdepfiles}                                >> "{o}"mk.tmp
-Echo "NATDEPFILES = " {nat_file}                       >> "{o}"mk.tmp
+Echo "NATDEPFILES = " {natdepfiles}                    >> "{o}"mk.tmp
 Echo "XM_ADD_FILES = "                                 >> "{o}"mk.tmp
 Echo "TM_ADD_FILES = "                                 >> "{o}"mk.tmp
 Echo "NAT_ADD_FILES = "                                        >> "{o}"mk.tmp
 Echo "XM_CDEPS = "                                     >> "{o}"mk.tmp
 Echo "TM_CDEPS = "                                     >> "{o}"mk.tmp
 Echo "NAT_CDEPS = "                                    >> "{o}"mk.tmp
+Echo "SIOW_LIB = " {siow_lib}                          >> "{o}"mk.tmp
+Echo "ENABLE_CFLAGS = " {enable_cflags}                        >> "{o}"mk.tmp
 Echo '# End from mpw-config.in'                                >> "{o}"mk.tmp
 
 Echo '/* config.h.  Generated by mpw-configure.  */'    > "{o}"config.new
This page took 0.024227 seconds and 4 git commands to generate.