1994-03-23 22:14:11 +00:00
|
|
|
# Configuration fragment for GDB.
|
|
|
|
|
1995-10-27 05:04:44 +00:00
|
|
|
If "{host_canonical}" =~ /m68k-apple-mpw/
|
|
|
|
forward-include "{srcdir}"config:m68k:xm-mpw.h xm.h
|
1995-11-09 22:24:44 +00:00
|
|
|
Set siow_lib '"{Libraries}"SIOW.o'
|
1994-03-23 22:14:11 +00:00
|
|
|
|
1995-10-27 05:04:44 +00:00
|
|
|
Else If "{host_canonical}" =~ /powerpc-apple-mpw/
|
|
|
|
forward-include "{srcdir}"config:powerpc:xm-mpw.h xm.h
|
1995-11-09 22:24:44 +00:00
|
|
|
Set siow_lib '"{PPCLibraries}"PPCSIOW.o'
|
1994-03-23 22:14:11 +00:00
|
|
|
|
1995-10-27 05:04:44 +00:00
|
|
|
End If
|
|
|
|
|
|
|
|
Set xdepfiles '"{o}"mac-xdep.c.o'
|
1994-09-13 00:50:38 +00:00
|
|
|
|
1995-12-12 02:35:27 +00:00
|
|
|
Set enable_cflags ""
|
|
|
|
|
1994-07-01 18:44:26 +00:00
|
|
|
# Make a copy of this file and give it a different name, so it
|
|
|
|
# won't be confused with GDB's serial.h.
|
|
|
|
|
1995-06-15 22:10:27 +00:00
|
|
|
Duplicate -y "{CIncludes}"Serial.h MacSerial.h
|
1994-07-01 18:44:26 +00:00
|
|
|
|
1994-03-23 22:14:11 +00:00
|
|
|
Echo "/* dummy */" >termio.h
|
|
|
|
|
1994-12-14 00:47:32 +00:00
|
|
|
If "{target_canonical}" =~ /m68k-apple-macos/
|
|
|
|
forward-include "{srcdir}"config:m68k:tm-mac.h tm.h
|
|
|
|
forward-include "{srcdir}"config:m68k:tm-m68k.h 'm68k/tm-m68k.h'
|
1995-03-17 23:21:12 +00:00
|
|
|
Set tdepfiles '"{o}"m68k-tdep.c.o'
|
1994-12-14 00:47:32 +00:00
|
|
|
|
1995-10-19 19:29:52 +00:00
|
|
|
Else If "{target_canonical}" =~ /powerpc-apple-macos/
|
|
|
|
forward-include "{srcdir}"config:powerpc:tm-macos.h tm.h
|
|
|
|
forward-include "{srcdir}"config:rs6000:tm-rs6000.h 'rs6000/tm-rs6000.h'
|
|
|
|
Set tdepfiles '"{o}"rs6000-tdep.c.o "{o}"xcoffread.c.o'
|
1994-12-14 00:47:32 +00:00
|
|
|
|
1995-03-17 23:21:12 +00:00
|
|
|
Else If "{target_canonical}" =~ /i386-unknown-go32/
|
|
|
|
forward-include "{srcdir}"config:i386:tm-i386v.h tm.h
|
1994-12-14 00:47:32 +00:00
|
|
|
Set tdepfiles '"{o}"i386-tdep.c.o'
|
1995-03-17 23:21:12 +00:00
|
|
|
|
1994-12-14 00:47:32 +00:00
|
|
|
Else If "{target_canonical}" =~ /mips-idt-ecoff/
|
1995-12-12 02:35:27 +00:00
|
|
|
forward-include "{srcdir}"config:mips:tm-embed.h tm.h
|
1994-09-13 00:50:38 +00:00
|
|
|
forward-include "{srcdir}"config:mips:tm-bigmips.h 'mips/tm-bigmips.h'
|
|
|
|
forward-include "{srcdir}"config:mips:tm-mips.h 'mips/tm-mips.h'
|
1995-03-17 23:21:12 +00:00
|
|
|
Set tdepfiles '"{o}"mips-tdep.c.o "{o}"remote-mips.c.o'
|
1994-09-13 00:50:38 +00:00
|
|
|
|
1995-12-12 02:35:27 +00:00
|
|
|
# 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}"magic.c.o'
|
|
|
|
If {host_cc} =~ /gcc/
|
|
|
|
Set enable_cflags '-DGENERAL_MAGIC'
|
|
|
|
Else
|
|
|
|
Set enable_cflags '-d GENERAL_MAGIC'
|
|
|
|
End If
|
|
|
|
# end-sanitize-gm
|
|
|
|
|
1995-03-17 23:21:12 +00:00
|
|
|
Else If "{target_canonical}" =~ /sh-hitachi-hms/
|
|
|
|
forward-include "{srcdir}"config:sh:tm-sh.h tm.h
|
|
|
|
Set tdepfiles '"{o}"sh-tdep.c.o'
|
1995-10-27 05:04:44 +00:00
|
|
|
|
1994-09-13 00:50:38 +00:00
|
|
|
End If
|
|
|
|
|
1995-10-27 05:04:44 +00:00
|
|
|
If "{target_canonical}" =~ /m68k-apple-macos/
|
|
|
|
forward-include "{srcdir}"config:m68k:nm-macos.h nm.h
|
1995-12-12 02:35:27 +00:00
|
|
|
Set natdepfiles '"{o}"mac-nat.c.o'
|
1995-10-27 05:04:44 +00:00
|
|
|
|
|
|
|
Else If "{target_canonical}" =~ /powerpc-apple-macos/
|
|
|
|
forward-include "{srcdir}"config:powerpc:nm-macos.h nm.h
|
1995-12-12 02:35:27 +00:00
|
|
|
Set natdepfiles '"{o}"mac-nat.c.o'
|
1995-10-27 05:04:44 +00:00
|
|
|
|
|
|
|
Else
|
1994-09-13 00:50:38 +00:00
|
|
|
forward-include "{srcdir}"config:nm-empty.h nm.h
|
1995-10-27 05:04:44 +00:00
|
|
|
Set natdepfiles ' '
|
|
|
|
|
1994-09-13 00:50:38 +00:00
|
|
|
End If
|
1994-03-23 22:14:11 +00:00
|
|
|
|
1995-10-19 19:29:52 +00:00
|
|
|
Echo '# From mpw-config.in' > "{o}"mk.tmp
|
|
|
|
Echo "TDEPFILES = " {tdepfiles} >> "{o}"mk.tmp
|
|
|
|
Echo "XDEPFILES = " {xdepfiles} >> "{o}"mk.tmp
|
1995-10-27 05:04:44 +00:00
|
|
|
Echo "NATDEPFILES = " {natdepfiles} >> "{o}"mk.tmp
|
1995-10-19 19:29:52 +00:00
|
|
|
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
|
1995-11-09 22:24:44 +00:00
|
|
|
Echo "SIOW_LIB = " {siow_lib} >> "{o}"mk.tmp
|
1995-12-12 02:35:27 +00:00
|
|
|
Echo "ENABLE_CFLAGS = " {enable_cflags} >> "{o}"mk.tmp
|
1995-10-19 19:29:52 +00:00
|
|
|
Echo '# End from mpw-config.in' >> "{o}"mk.tmp
|
|
|
|
|
|
|
|
Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
|
|
|
|
Echo '#include "mpw.h"' >> "{o}"config.new
|
|
|
|
|
|
|
|
MoveIfChange "{o}"config.new "{o}"config.h
|