1 |
104 |
markom |
# 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 |
|
|
|
8 |
|
|
Set Exit 0
|
9 |
|
|
Echo byacc is `Which byacc`
|
10 |
|
|
Echo flex is `Which flex`
|
11 |
|
|
Echo forward-include is `Which forward-include`
|
12 |
|
|
Echo MoveIfChange is `Which MoveIfChange`
|
13 |
|
|
Echo mpw-touch is `Which mpw-touch`
|
14 |
|
|
Echo mpw-true is `Which mpw-true`
|
15 |
|
|
Echo NewFolderRecursive is `Which NewFolderRecursive`
|
16 |
|
|
Echo null-command is `Which null-command`
|
17 |
|
|
Echo open-brace is `Which open-brace`
|
18 |
|
|
Echo sed is `Which sed`
|
19 |
|
|
Echo 'tr-7to8' is `Which tr-7to8`
|
20 |
|
|
Echo true is `Which true`
|
21 |
|
|
Set Exit 1
|
22 |
|
|
|
23 |
|
|
Set host_libs "mmalloc libiberty opcodes bfd readline gash tcl tk tclX"
|
24 |
|
|
|
25 |
|
|
Set 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 |
|
|
|
31 |
|
|
Set target_libs "newlib"
|
32 |
|
|
|
33 |
|
|
Set target_tools "examples"
|
34 |
|
|
|
35 |
|
|
# Configure the resource compiler if targeting Macs.
|
36 |
|
|
If {target_os} =~ /macos/ || {target_os} =~ /mpw/
|
37 |
|
|
Set host_tools "{host_tools} grez"
|
38 |
|
|
End If
|
39 |
|
|
|
40 |
|
|
Set configdirs "{host_libs} {host_tools} {target_libs} {target_tools}"
|
41 |
|
|
Export configdirs
|
42 |
|
|
|
43 |
|
|
# Make up a special include directory that tools will share.
|
44 |
|
|
|
45 |
|
|
If "`Exists "{objdir}"extra-include`" == ""
|
46 |
|
|
NewFolder "{objdir}"extra-include
|
47 |
|
|
End If
|
48 |
|
|
|
49 |
|
|
Set edir "{objdir}extra-include:"
|
50 |
|
|
|
51 |
|
|
forward-include "{srcdir}"include:mpw:sys:file.h "{edir}"'sys/file.h'
|
52 |
|
|
forward-include "{srcdir}"include:mpw:sys:ioctl.h "{edir}"'sys/ioctl.h'
|
53 |
|
|
forward-include "{srcdir}"include:mpw:sys:param.h "{edir}"'sys/param.h'
|
54 |
|
|
forward-include "{srcdir}"include:mpw:sys:resource.h "{edir}"'sys/resource.h'
|
55 |
|
|
forward-include "{srcdir}"include:mpw:sys:stat.h "{edir}"'sys/stat.h'
|
56 |
|
|
forward-include "{srcdir}"include:mpw:sys:time.h "{edir}"'sys/time.h'
|
57 |
|
|
forward-include "{srcdir}"include:mpw:sys:types.h "{edir}"'sys/types.h'
|
58 |
|
|
|
59 |
|
|
forward-include "{srcroot}"include:aout:aout64.h "{edir}"'aout/aout64.h'
|
60 |
|
|
forward-include "{srcroot}"include:aout:ar.h "{edir}"'aout/ar.h'
|
61 |
|
|
forward-include "{srcroot}"include:aout:ranlib.h "{edir}"'aout/ranlib.h'
|
62 |
|
|
forward-include "{srcroot}"include:aout:reloc.h "{edir}"'aout/reloc.h'
|
63 |
|
|
forward-include "{srcroot}"include:aout:stab.def "{edir}"'aout/stab.def'
|
64 |
|
|
forward-include "{srcroot}"include:aout:stab_gnu.h "{edir}"'aout/stab_gnu.h'
|
65 |
|
|
|
66 |
|
|
If "`Exists "{srcroot}"include:aout:"{target_cpu}".h`" != ""
|
67 |
|
|
forward-include "{srcroot}"include:aout:"{target_cpu}".h "{edir}"'aout/'"{target_cpu}"'.h'
|
68 |
|
|
End If
|
69 |
|
|
|
70 |
|
|
forward-include "{srcroot}"include:coff:ecoff.h "{edir}"'coff/ecoff.h'
|
71 |
|
|
forward-include "{srcroot}"include:coff:internal.h "{edir}"'coff/internal.h'
|
72 |
|
|
forward-include "{srcroot}"include:coff:sym.h "{edir}"'coff/sym.h'
|
73 |
|
|
forward-include "{srcroot}"include:coff:symconst.h "{edir}"'coff/symconst.h'
|
74 |
|
|
|
75 |
|
|
If "`Exists "{srcroot}"include:coff:"{target_cpu}".h`" != ""
|
76 |
|
|
forward-include "{srcroot}"include:coff:"{target_cpu}".h "{edir}"'coff/'"{target_cpu}"'.h'
|
77 |
|
|
End If
|
78 |
|
|
If "{target_cpu}" =~ /powerpc/
|
79 |
|
|
forward-include "{srcroot}"include:coff:rs6000.h "{edir}"'coff/rs6000.h'
|
80 |
|
|
End If
|
81 |
|
|
|
82 |
|
|
forward-include "{srcroot}"include:elf:common.h "{edir}"'elf/common.h'
|
83 |
|
|
forward-include "{srcroot}"include:elf:dwarf.h "{edir}"'elf/dwarf.h'
|
84 |
|
|
forward-include "{srcroot}"include:elf:dwarf2.h "{edir}"'elf/dwarf2.h'
|
85 |
|
|
forward-include "{srcroot}"include:elf:external.h "{edir}"'elf/external.h'
|
86 |
|
|
forward-include "{srcroot}"include:elf:internal.h "{edir}"'elf/internal.h'
|
87 |
|
|
|
88 |
|
|
# Believe it or not, GDB needs this for all targets.
|
89 |
|
|
forward-include "{srcroot}"include:elf:mips.h "{edir}"'elf/mips.h'
|
90 |
|
|
|
91 |
|
|
If "`Exists "{srcroot}"include:elf:"{target_cpu}".h`" != ""
|
92 |
|
|
forward-include "{srcroot}"include:elf:"{target_cpu}".h "{edir}"'elf/'"{target_cpu}"'.h'
|
93 |
|
|
End If
|
94 |
|
|
If "{target_cpu}" =~ /powerpc/
|
95 |
|
|
forward-include "{srcroot}"include:elf:ppc.h "{edir}"'elf/ppc.h'
|
96 |
|
|
End If
|
97 |
|
|
|
98 |
|
|
If "`Exists "{srcroot}"include:opcode:"{target_cpu}".h`" != ""
|
99 |
|
|
forward-include "{srcroot}"include:opcode:"{target_cpu}".h "{edir}"'opcode/'"{target_cpu}"'.h'
|
100 |
|
|
End If
|
101 |
|
|
If "{target_cpu}" =~ /powerpc/
|
102 |
|
|
forward-include "{srcroot}"include:opcode:ppc.h "{edir}"'opcode/ppc.h'
|
103 |
|
|
End If
|
104 |
|
|
|
105 |
|
|
# Add some bfd includes that get mentioned outside the bfd dir.
|
106 |
|
|
|
107 |
|
|
forward-include "{srcroot}"bfd:libcoff.h "{edir}"'bfd/libcoff.h'
|
108 |
|
|
forward-include "{srcroot}"bfd:libecoff.h "{edir}"'bfd/libecoff.h'
|
109 |
|
|
|
110 |
|
|
# Translate random files into MPW-only character set.
|
111 |
|
|
|
112 |
|
|
tr-7to8 "{srcdir}"mpw-README > "{objdir}Read Me for MPW"
|
113 |
|
|
tr-7to8 "{srcdir}"mpw-install > "{objdir}"Install
|