1 # Configuration fragment for GDB.
3 If "{host_canonical}" =~ /m68k-apple-mpw/
4 forward-include "{srcdir}"config:m68k:xm-mpw.h xm.h
5 Set siow_lib '"{Libraries}"SIOW.o'
7 Else If "{host_canonical}" =~ /powerpc-apple-mpw/
8 forward-include "{srcdir}"config:powerpc:xm-mpw.h xm.h
9 Set siow_lib '"{PPCLibraries}"PPCSIOW.o'
13 Set xdepfiles '"{o}"mac-xdep.c.o'
17 # Make a copy of this file and give it a different name, so it
18 # won't be confused with GDB's serial.h.
20 Duplicate -y "{CIncludes}"Serial.h MacSerial.h
22 Echo "/* dummy */" >termio.h
24 If "{target_canonical}" =~ /m68k-apple-macos/
25 forward-include "{srcdir}"config:m68k:tm-mac.h tm.h
26 forward-include "{srcdir}"config:m68k:tm-m68k.h 'm68k/tm-m68k.h'
27 Set tdepfiles '"{o}"m68k-tdep.c.o'
29 Else If "{target_canonical}" =~ /powerpc-apple-macos/
30 forward-include "{srcdir}"config:powerpc:tm-macos.h tm.h
31 forward-include "{srcdir}"config:rs6000:tm-rs6000.h 'rs6000/tm-rs6000.h'
32 Set tdepfiles '"{o}"rs6000-tdep.c.o "{o}"xcoffread.c.o'
34 Else If "{target_canonical}" =~ /i386-unknown-go32/
35 forward-include "{srcdir}"config:i386:tm-i386v.h tm.h
36 Set tdepfiles '"{o}"i386-tdep.c.o'
38 Else If "{target_canonical}" =~ /mips-idt-ecoff/
39 forward-include "{srcdir}"config:mips:tm-embed.h tm.h
40 forward-include "{srcdir}"config:mips:tm-bigmips.h 'mips/tm-bigmips.h'
41 forward-include "{srcdir}"config:mips:tm-mips.h 'mips/tm-mips.h'
42 Set tdepfiles '"{o}"mips-tdep.c.o "{o}"remote-mips.c.o'
44 Else If "{target_canonical}" =~ /sh-hitachi-hms/
45 forward-include "{srcdir}"config:sh:tm-sh.h tm.h
46 Set tdepfiles '"{o}"sh-tdep.c.o'
50 If "{target_canonical}" =~ /m68k-apple-macos/
51 forward-include "{srcdir}"config:m68k:nm-macos.h nm.h
52 Set natdepfiles '"{o}"mac-nat.c.o'
54 Else If "{target_canonical}" =~ /powerpc-apple-macos/
55 forward-include "{srcdir}"config:powerpc:nm-macos.h nm.h
56 Set natdepfiles '"{o}"mac-nat.c.o'
59 forward-include "{srcdir}"config:nm-empty.h nm.h
64 Echo '# From mpw-config.in' > "{o}"mk.tmp
65 Echo "TDEPFILES = " {tdepfiles} >> "{o}"mk.tmp
66 Echo "XDEPFILES = " {xdepfiles} >> "{o}"mk.tmp
67 Echo "NATDEPFILES = " {natdepfiles} >> "{o}"mk.tmp
68 Echo "XM_ADD_FILES = " >> "{o}"mk.tmp
69 Echo "TM_ADD_FILES = " >> "{o}"mk.tmp
70 Echo "NAT_ADD_FILES = " >> "{o}"mk.tmp
71 Echo "XM_CDEPS = " >> "{o}"mk.tmp
72 Echo "TM_CDEPS = " >> "{o}"mk.tmp
73 Echo "NAT_CDEPS = " >> "{o}"mk.tmp
74 Echo "SIOW_LIB = " {siow_lib} >> "{o}"mk.tmp
75 Echo "ENABLE_CFLAGS = " {enable_cflags} >> "{o}"mk.tmp
76 Echo '# End from mpw-config.in' >> "{o}"mk.tmp
78 Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
79 Echo '#include "mpw.h"' >> "{o}"config.new
81 MoveIfChange "{o}"config.new "{o}"config.h