1 # Top-level script fragment to build everything for MPW.
3 Set savedir "`Directory`"
13 Set BuildTarget "none"
19 If "{BuildTarget}" =~ /none/
22 Echo Only one build target allowed, ignoring "{1}"
28 Echo "#" Doing "{ThisScript}" "{BuildTarget}" in "`Directory`" ...
31 If "`Exists Makefile`" != ""
32 Echo "Set Echo 1" >{BuildTarget}.makeout
33 Make -f Makefile {BuildTarget} >>{BuildTarget}.makeout
35 Delete {BuildTarget}.makeout
36 Else If "{BuildTarget}" =~ /all/
37 "{ThisScript}" all-gcc
39 "{ThisScript}" all-gdb
40 Else If "{BuildTarget}" =~ /all-binutils/
41 "{ThisScript}" do-libiberty
43 "{ThisScript}" do-opcodes
44 "{ThisScript}" do-binutils
45 Else If "{BuildTarget}" =~ /all-gas/
46 "{ThisScript}" do-libiberty
48 "{ThisScript}" do-opcodes
50 Else If "{BuildTarget}" =~ /all-gcc/
51 "{ThisScript}" all-gas
52 "{ThisScript}" all-binutils
54 Else If "{BuildTarget}" =~ /all-gdb/
55 "{ThisScript}" do-libiberty
57 "{ThisScript}" do-opcodes
59 Else If "{BuildTarget}" =~ /all-ld/
60 "{ThisScript}" do-libiberty
62 "{ThisScript}" do-opcodes
64 Else If "{BuildTarget}" =~ /do-bfd/
67 Else If "{BuildTarget}" =~ /do-libiberty/
68 SetDirectory :libiberty:
70 Else If "{BuildTarget}" =~ /do-opcodes/
71 SetDirectory :opcodes:
73 Else If "{BuildTarget}" =~ /do-binutils/
74 SetDirectory :binutils:
76 Else If "{BuildTarget}" =~ /do-gas/
79 Else If "{BuildTarget}" =~ /do-gcc/
82 Else If "{BuildTarget}" =~ /do-gdb/
85 Else If "{BuildTarget}" =~ /do-ld/
88 Else If "{BuildTarget}" =~ /install/
89 "{ThisScript}" install-binutils
90 "{ThisScript}" install-gas
91 "{ThisScript}" install-gcc
92 # "{ThisScript}" install-gdb
93 "{ThisScript}" install-ld
94 Else If "{BuildTarget}" =~ /install-binutils/
95 SetDirectory :binutils:
97 Else If "{BuildTarget}" =~ /install-gas/
100 Else If "{BuildTarget}" =~ /install-gcc/
103 Else If "{BuildTarget}" =~ /install-gdb/
106 Else If "{BuildTarget}" =~ /install-ld/
112 SetDirectory "{savedir}"