]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - mpw-config.in
2003-02-18 Elena Zannoni <ezannoni@redhat.com>
[thirdparty/binutils-gdb.git] / mpw-config.in
CommitLineData
252b5132
RH
1# Configuration fragment for Cygnus source tree.
2
3# Check that we can find all the special tools that we will need.
4# The test for sed is semi-pointless, because it's already been invoked
5# by the calculation of target_cpu in the main configure script, but
6# the test will also show which one is being used.
7
8Set Exit 0
9Echo byacc is `Which byacc`
10Echo flex is `Which flex`
11Echo forward-include is `Which forward-include`
12Echo MoveIfChange is `Which MoveIfChange`
13Echo mpw-touch is `Which mpw-touch`
14Echo mpw-true is `Which mpw-true`
15Echo NewFolderRecursive is `Which NewFolderRecursive`
16Echo null-command is `Which null-command`
17Echo open-brace is `Which open-brace`
18Echo sed is `Which sed`
19Echo 'tr-7to8' is `Which tr-7to8`
20Echo true is `Which true`
21Set Exit 1
22
23Set host_libs "mmalloc libiberty opcodes bfd readline gash tcl tk tclX"
24
25Set host_tools "texinfo byacc flex bison binutils ld gas gcc gdb make patch \Option-d
26 prms send-pr gprof gdbtest tgas etc expect dejagnu sim bash \Option-d
27 m4 autoconf ispell grep diff rcs cvs fileutils shellutils time \Option-d
28 textutils wdiff find emacs emacs19 uudecode hello tar gzip indent \Option-d
29 recode release sed utils guile perl apache inet gawk"
30
31Set target_libs "newlib"
32
33Set target_tools "examples"
34
35# Configure the resource compiler if targeting Macs.
36If {target_os} =~ /macos/ || {target_os} =~ /mpw/
37 Set host_tools "{host_tools} grez"
38End If
39
40Set configdirs "{host_libs} {host_tools} {target_libs} {target_tools}"
41Export configdirs
42
43# Make up a special include directory that tools will share.
44
45If "`Exists "{objdir}"extra-include`" == ""
46 NewFolder "{objdir}"extra-include
47End If
48
49Set edir "{objdir}extra-include:"
50
51forward-include "{srcdir}"include:mpw:sys:file.h "{edir}"'sys/file.h'
52forward-include "{srcdir}"include:mpw:sys:ioctl.h "{edir}"'sys/ioctl.h'
53forward-include "{srcdir}"include:mpw:sys:param.h "{edir}"'sys/param.h'
54forward-include "{srcdir}"include:mpw:sys:resource.h "{edir}"'sys/resource.h'
55forward-include "{srcdir}"include:mpw:sys:stat.h "{edir}"'sys/stat.h'
56forward-include "{srcdir}"include:mpw:sys:time.h "{edir}"'sys/time.h'
57forward-include "{srcdir}"include:mpw:sys:types.h "{edir}"'sys/types.h'
58
59forward-include "{srcroot}"include:aout:aout64.h "{edir}"'aout/aout64.h'
60forward-include "{srcroot}"include:aout:ar.h "{edir}"'aout/ar.h'
61forward-include "{srcroot}"include:aout:ranlib.h "{edir}"'aout/ranlib.h'
62forward-include "{srcroot}"include:aout:reloc.h "{edir}"'aout/reloc.h'
63forward-include "{srcroot}"include:aout:stab.def "{edir}"'aout/stab.def'
64forward-include "{srcroot}"include:aout:stab_gnu.h "{edir}"'aout/stab_gnu.h'
65
66If "`Exists "{srcroot}"include:aout:"{target_cpu}".h`" != ""
67 forward-include "{srcroot}"include:aout:"{target_cpu}".h "{edir}"'aout/'"{target_cpu}"'.h'
68End If
69
70forward-include "{srcroot}"include:coff:ecoff.h "{edir}"'coff/ecoff.h'
71forward-include "{srcroot}"include:coff:internal.h "{edir}"'coff/internal.h'
72forward-include "{srcroot}"include:coff:sym.h "{edir}"'coff/sym.h'
73forward-include "{srcroot}"include:coff:symconst.h "{edir}"'coff/symconst.h'
74
75If "`Exists "{srcroot}"include:coff:"{target_cpu}".h`" != ""
76 forward-include "{srcroot}"include:coff:"{target_cpu}".h "{edir}"'coff/'"{target_cpu}"'.h'
77End If
78If "{target_cpu}" =~ /powerpc/
79 forward-include "{srcroot}"include:coff:rs6000.h "{edir}"'coff/rs6000.h'
80End If
81
82forward-include "{srcroot}"include:elf:common.h "{edir}"'elf/common.h'
83forward-include "{srcroot}"include:elf:dwarf.h "{edir}"'elf/dwarf.h'
84forward-include "{srcroot}"include:elf:dwarf2.h "{edir}"'elf/dwarf2.h'
85forward-include "{srcroot}"include:elf:external.h "{edir}"'elf/external.h'
86forward-include "{srcroot}"include:elf:internal.h "{edir}"'elf/internal.h'
87
88# Believe it or not, GDB needs this for all targets.
89forward-include "{srcroot}"include:elf:mips.h "{edir}"'elf/mips.h'
90
91If "`Exists "{srcroot}"include:elf:"{target_cpu}".h`" != ""
92 forward-include "{srcroot}"include:elf:"{target_cpu}".h "{edir}"'elf/'"{target_cpu}"'.h'
93End If
94If "{target_cpu}" =~ /powerpc/
95 forward-include "{srcroot}"include:elf:ppc.h "{edir}"'elf/ppc.h'
96End If
97
98If "`Exists "{srcroot}"include:opcode:"{target_cpu}".h`" != ""
99 forward-include "{srcroot}"include:opcode:"{target_cpu}".h "{edir}"'opcode/'"{target_cpu}"'.h'
100End If
101If "{target_cpu}" =~ /powerpc/
102 forward-include "{srcroot}"include:opcode:ppc.h "{edir}"'opcode/ppc.h'
103End If
104
105# Add some bfd includes that get mentioned outside the bfd dir.
106
107forward-include "{srcroot}"bfd:libcoff.h "{edir}"'bfd/libcoff.h'
108forward-include "{srcroot}"bfd:libecoff.h "{edir}"'bfd/libecoff.h'
109
110# Translate random files into MPW-only character set.
111
112tr-7to8 "{srcdir}"mpw-README > "{objdir}Read Me for MPW"
113tr-7to8 "{srcdir}"mpw-install > "{objdir}"Install