aboutsummaryrefslogtreecommitdiff
path: root/gdb/mpw-config.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-10-27 05:04:44 +0000
committerStan Shebs <shebs@codesourcery.com>1995-10-27 05:04:44 +0000
commit7bd447bae3deee8af8c6ddd46973d53db7e48c1c (patch)
treeeb3392708740b879ecb1fe29445effc3e63f0387 /gdb/mpw-config.in
parentd5115c2bc66e51c00b49ee44adbbb8d32eeb60df (diff)
downloadgdb-7bd447bae3deee8af8c6ddd46973d53db7e48c1c.zip
gdb-7bd447bae3deee8af8c6ddd46973d53db7e48c1c.tar.gz
gdb-7bd447bae3deee8af8c6ddd46973d53db7e48c1c.tar.bz2
* mpw-config.in: Add support for PowerMac host, add beginnings
of native support. * mpw-make.sed: Disable subdir recursion, edit out useless rule. * mac-xdep.c (Values.h): Don't include. (GestaltEqu.h): Include Gestalt.h instead. (do_mouse_down): Comment out control tracking, needs to be updated to use UPP before will work on PowerMac.
Diffstat (limited to 'gdb/mpw-config.in')
-rw-r--r--gdb/mpw-config.in26
1 files changed, 20 insertions, 6 deletions
diff --git a/gdb/mpw-config.in b/gdb/mpw-config.in
index 6c51e8b..3711f50 100644
--- a/gdb/mpw-config.in
+++ b/gdb/mpw-config.in
@@ -1,10 +1,14 @@
# 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
-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 xdepfiles '"{o}"mac-xdep.c.o'
+End If
+
+Set xdepfiles '"{o}"mac-xdep.c.o'
# Make a copy of this file and give it a different name, so it
# won't be confused with GDB's serial.h.
@@ -36,17 +40,27 @@ Else If "{target_canonical}" =~ /mips-idt-ecoff/
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'
+
+Else If "{target_canonical}" =~ /powerpc-apple-macos/
+ forward-include "{srcdir}"config:powerpc:nm-macos.h nm.h
+ Set natdepfiles '"{o}"mac-nat.c'
+
+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