1 # Top-level script fragment to build everything for MPW.
3 Set savedir "`Directory`"
18 Set BuildTarget "none"
20 Set prefix "{Boot}"Cygnus:latest:
26 If "{1}" =~ /--srcdir/
29 Else If "{1}" =~ /--topdir/
32 Else If "{1}" =~ /--prefix/
40 If "{BuildTarget}" =~ /none/
43 Echo Only one build target allowed, ignoring "{1}"
49 If "{BuildTarget}" =~ /all/
51 "{thisscript}" all-gcc
52 "{thisscript}" all-gdb
53 Else If "{BuildTarget}" =~ /all-binutils/
54 "{thisscript}" do-libiberty
56 "{thisscript}" do-opcodes
57 "{thisscript}" do-binutils
58 Else If "{BuildTarget}" =~ /all-gas/
59 "{thisscript}" do-libiberty
61 "{thisscript}" do-opcodes
63 Else If "{BuildTarget}" =~ /all-gcc/
64 "{thisscript}" all-gas
66 Else If "{BuildTarget}" =~ /all-gdb/
67 "{thisscript}" do-libiberty
69 "{thisscript}" do-opcodes
71 Else If "{BuildTarget}" =~ /all-ld/
72 "{thisscript}" do-libiberty
74 "{thisscript}" do-opcodes
76 Else If "{BuildTarget}" =~ /do-bfd/
79 Else If "{BuildTarget}" =~ /do-libiberty/
80 SetDirectory :libiberty:
82 Else If "{BuildTarget}" =~ /do-mmalloc/
83 SetDirectory :mmalloc:
85 Else If "{BuildTarget}" =~ /do-opcodes/
86 SetDirectory :opcodes:
88 Else If "{BuildTarget}" =~ /do-readline/
89 SetDirectory :readline:
91 Else If "{BuildTarget}" =~ /do-binutils/
92 SetDirectory :binutils:
94 Else If "{BuildTarget}" =~ /do-gas/
96 :mpw-build all --prefix "{prefix}"
97 Else If "{BuildTarget}" =~ /do-gcc/
99 :mpw-build all --prefix "{prefix}"
100 Else If "{BuildTarget}" =~ /do-gdb/
103 Else If "{BuildTarget}" =~ /do-ld/
106 Else If "{BuildTarget}" =~ /install/
107 "{thisscript}" install-binutils
108 "{thisscript}" install-gas
109 "{thisscript}" install-gcc
110 "{thisscript}" install-gdb
111 "{thisscript}" install-ld
112 Else If "{BuildTarget}" =~ /install-binutils/
113 SetDirectory :binutils:
114 :mpw-build install --prefix "{prefix}"
115 Else If "{BuildTarget}" =~ /install-gas/
117 :mpw-build install --prefix "{prefix}"
118 Else If "{BuildTarget}" =~ /install-gcc/
120 :mpw-build install --prefix "{prefix}"
121 Else If "{BuildTarget}" =~ /install-gdb/
123 :mpw-build install --prefix "{prefix}"
124 Else If "{BuildTarget}" =~ /install-ld/
126 :mpw-build install --prefix "{prefix}"
130 SetDirectory "{savedir}"