Wed Nov 20 16:15:15 1996 Geoffrey Noer <noer@cygnus.com>
[deliverable/binutils-gdb.git] / gdb / mpw-config.in
CommitLineData
8dc3e3d7
SS
1# Configuration fragment for GDB.
2
7bd447ba
SS
3If "{host_canonical}" =~ /m68k-apple-mpw/
4 forward-include "{srcdir}"config:m68k:xm-mpw.h xm.h
96336a43 5 Set siow_lib '"{Libraries}"SIOW.o'
8dc3e3d7 6
7bd447ba
SS
7Else If "{host_canonical}" =~ /powerpc-apple-mpw/
8 forward-include "{srcdir}"config:powerpc:xm-mpw.h xm.h
96336a43 9 Set siow_lib '"{PPCLibraries}"PPCSIOW.o'
8dc3e3d7 10
7bd447ba
SS
11End If
12
13Set xdepfiles '"{o}"mac-xdep.c.o'
2ff6b38a 14
c148ab3c
SS
15Set enable_cflags ""
16
7f6572f5
SS
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.
19
e33c359d 20Duplicate -y "{CIncludes}"Serial.h MacSerial.h
7f6572f5 21
8dc3e3d7
SS
22Echo "/* dummy */" >termio.h
23
3bf21084
SS
24If "{target_canonical}" =~ /m68k-apple-macos/
25 forward-include "{srcdir}"config:m68k:tm-mac.h tm.h
3bf21084 26 forward-include "{srcdir}"config:m68k:tm-m68k.h 'm68k/tm-m68k.h'
e70a10c3 27 Set tdepfiles '"{o}"m68k-tdep.c.o'
3bf21084 28
a6922ef0
SS
29Else 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'
3bf21084 33
e70a10c3
SS
34Else If "{target_canonical}" =~ /i386-unknown-go32/
35 forward-include "{srcdir}"config:i386:tm-i386v.h tm.h
3bf21084 36 Set tdepfiles '"{o}"i386-tdep.c.o'
e70a10c3 37
3bf21084 38Else If "{target_canonical}" =~ /mips-idt-ecoff/
c148ab3c 39 forward-include "{srcdir}"config:mips:tm-embed.h tm.h
2ff6b38a
SS
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'
e70a10c3 42 Set tdepfiles '"{o}"mips-tdep.c.o "{o}"remote-mips.c.o'
2ff6b38a 43
c148ab3c
SS
44# start-sanitize-gm
45Else If "{target_canonical}" =~ /mips-gm-magic/
46 forward-include "{srcdir}"config:mips:tm-embed.h tm.h
47 forward-include "{srcdir}"config:mips:tm-bigmips.h 'mips/tm-bigmips.h'
48 forward-include "{srcdir}"config:mips:tm-mips.h 'mips/tm-mips.h'
b208ff3b 49 Set tdepfiles '"{o}"mips-tdep.c.o "{o}"remote-mips.c.o "{o}"gmagic.c.o'
c148ab3c
SS
50 If {host_cc} =~ /gcc/
51 Set enable_cflags '-DGENERAL_MAGIC'
52 Else
53 Set enable_cflags '-d GENERAL_MAGIC'
54 End If
55# end-sanitize-gm
56
e70a10c3
SS
57Else If "{target_canonical}" =~ /sh-hitachi-hms/
58 forward-include "{srcdir}"config:sh:tm-sh.h tm.h
59 Set tdepfiles '"{o}"sh-tdep.c.o'
7bd447ba 60
2ff6b38a
SS
61End If
62
7bd447ba
SS
63If "{target_canonical}" =~ /m68k-apple-macos/
64 forward-include "{srcdir}"config:m68k:nm-macos.h nm.h
c148ab3c 65 Set natdepfiles '"{o}"mac-nat.c.o'
7bd447ba
SS
66
67Else If "{target_canonical}" =~ /powerpc-apple-macos/
68 forward-include "{srcdir}"config:powerpc:nm-macos.h nm.h
c148ab3c 69 Set natdepfiles '"{o}"mac-nat.c.o'
7bd447ba
SS
70
71Else
2ff6b38a 72 forward-include "{srcdir}"config:nm-empty.h nm.h
7bd447ba
SS
73 Set natdepfiles ' '
74
2ff6b38a 75End If
8dc3e3d7 76
a6922ef0
SS
77Echo '# From mpw-config.in' > "{o}"mk.tmp
78Echo "TDEPFILES = " {tdepfiles} >> "{o}"mk.tmp
79Echo "XDEPFILES = " {xdepfiles} >> "{o}"mk.tmp
7bd447ba 80Echo "NATDEPFILES = " {natdepfiles} >> "{o}"mk.tmp
a6922ef0
SS
81Echo "XM_ADD_FILES = " >> "{o}"mk.tmp
82Echo "TM_ADD_FILES = " >> "{o}"mk.tmp
83Echo "NAT_ADD_FILES = " >> "{o}"mk.tmp
84Echo "XM_CDEPS = " >> "{o}"mk.tmp
85Echo "TM_CDEPS = " >> "{o}"mk.tmp
86Echo "NAT_CDEPS = " >> "{o}"mk.tmp
96336a43 87Echo "SIOW_LIB = " {siow_lib} >> "{o}"mk.tmp
c148ab3c 88Echo "ENABLE_CFLAGS = " {enable_cflags} >> "{o}"mk.tmp
a6922ef0
SS
89Echo '# End from mpw-config.in' >> "{o}"mk.tmp
90
91Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
92Echo '#include "mpw.h"' >> "{o}"config.new
93
94MoveIfChange "{o}"config.new "{o}"config.h
This page took 0.132614 seconds and 4 git commands to generate.