* config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
[deliverable/binutils-gdb.git] / mpw-build.in
1 # Top-level script fragment to build everything for MPW.
2
3 Set savedir "`Directory`"
4
5 #Set Echo 1
6
7 Set thisscript "{0}"
8
9 Set topsrcdir ":"
10
11 Set srcdir ":"
12
13 Set objdir ":"
14
15 Set verify 0
16 Set verifystr ""
17
18 Set BuildTarget "none"
19
20 Set prefix "{Boot}"Cygnus:latest:
21
22 # Parse arguments.
23
24 Loop
25 Break If {#} == 0
26 If "{1}" =~ /--srcdir/
27 Set srcdir "{2}"
28 Shift 1
29 Else If "{1}" =~ /--topdir/
30 Set topsrcdir "{2}"
31 Shift 1
32 Else If "{1}" =~ /--prefix/
33 Set prefix "{2}"
34 Shift 1
35 Else If "{1}" =~ /-v/
36 Set verify 1
37 Set verifystr "-v"
38 Shift 1
39 Else
40 If "{BuildTarget}" =~ /none/
41 Set BuildTarget "{1}"
42 Else
43 Echo Only one build target allowed, ignoring "{1}"
44 End If
45 End If
46 Shift 1
47 End Loop
48
49 If "{BuildTarget}" =~ /all/
50 "{thisscript}" all-ld
51 "{thisscript}" all-gcc
52 "{thisscript}" all-gdb
53 Else If "{BuildTarget}" =~ /all-binutils/
54 "{thisscript}" do-libiberty
55 "{thisscript}" do-bfd
56 "{thisscript}" do-opcodes
57 "{thisscript}" do-binutils
58 Else If "{BuildTarget}" =~ /all-gas/
59 "{thisscript}" do-libiberty
60 "{thisscript}" do-bfd
61 "{thisscript}" do-opcodes
62 "{thisscript}" do-gas
63 Else If "{BuildTarget}" =~ /all-gcc/
64 "{thisscript}" all-gas
65 "{thisscript}" do-gcc
66 Else If "{BuildTarget}" =~ /all-gdb/
67 "{thisscript}" do-libiberty
68 "{thisscript}" do-bfd
69 "{thisscript}" do-opcodes
70 "{thisscript}" do-gdb
71 Else If "{BuildTarget}" =~ /all-ld/
72 "{thisscript}" do-libiberty
73 "{thisscript}" do-bfd
74 "{thisscript}" do-opcodes
75 "{thisscript}" do-ld
76 Else If "{BuildTarget}" =~ /do-bfd/
77 SetDirectory :bfd:
78 BuildProgram all
79 Else If "{BuildTarget}" =~ /do-libiberty/
80 SetDirectory :libiberty:
81 BuildProgram all
82 Else If "{BuildTarget}" =~ /do-mmalloc/
83 SetDirectory :mmalloc:
84 BuildProgram all
85 Else If "{BuildTarget}" =~ /do-opcodes/
86 SetDirectory :opcodes:
87 BuildProgram all
88 Else If "{BuildTarget}" =~ /do-readline/
89 SetDirectory :readline:
90 BuildProgram all
91 Else If "{BuildTarget}" =~ /do-binutils/
92 SetDirectory :binutils:
93 BuildProgram all
94 Else If "{BuildTarget}" =~ /do-gas/
95 SetDirectory :gas:
96 :mpw-build all --prefix "{prefix}"
97 Else If "{BuildTarget}" =~ /do-gcc/
98 SetDirectory :gcc:
99 :mpw-build all --prefix "{prefix}"
100 Else If "{BuildTarget}" =~ /do-gdb/
101 SetDirectory :gdb:
102 BuildProgram all
103 Else If "{BuildTarget}" =~ /do-ld/
104 SetDirectory :ld:
105 BuildProgram all
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/
116 SetDirectory :gas:
117 :mpw-build install --prefix "{prefix}"
118 Else If "{BuildTarget}" =~ /install-gcc/
119 SetDirectory :gcc:
120 :mpw-build install --prefix "{prefix}"
121 Else If "{BuildTarget}" =~ /install-gdb/
122 SetDirectory :gdb:
123 :mpw-build install --prefix "{prefix}"
124 Else If "{BuildTarget}" =~ /install-ld/
125 SetDirectory :ld:
126 :mpw-build install --prefix "{prefix}"
127 Else
128 End If
129
130 SetDirectory "{savedir}"
This page took 0.036204 seconds and 4 git commands to generate.