aboutsummaryrefslogtreecommitdiff
path: root/gdb/mpw-config.in
blob: 758c65286c59bed6b3d9373883413030bf8ddfc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Configuration fragment for GDB.

forward-include "{srcdir}"config:m68k:xm-mpw.h xm.h

forward-include "{srcdir}"config:m68k:xm-m68k.h 'm68k/xm-m68k.h'

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.

Duplicate -y "{MPW}"Interfaces:CIncludes:Serial.h MacSerial.h

Echo "/* dummy */" >termio.h

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'

	Set tdepfiles '"{o}"m68k-pinsn.c.o "{o}"m68k-tdep.c.o'
Else If "{target_canonical}" =~ /ppc-apple-macos/
	forward-include "{srcdir}"config:powerpc:tm-ppc.h tm.h

	Set tdepfiles '"{o}"ppc-tdep.c.o'
Else If "{target_canonical}" =~ /i386-unknown-aout/
	forward-include "{srcdir}"config:i386:tm-i386.h tm.h

	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-bigmips.h 'mips/tm-bigmips.h'
	forward-include "{srcdir}"config:mips:tm-mips.h 'mips/tm-mips.h'

	Set tdepfiles '"{o}"mips-pinsn.c.o "{o}"mips-tdep.c.o "{o}"remote-mips.c.o'
End If

If "{target_canonical}" != "{host_canonical}"
	forward-include "{srcdir}"config:nm-empty.h nm.h
	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 '# End from mpw-config.in' >> "{o}"mk.tmp