REGISTER_TYPE is obsolete.
[deliverable/binutils-gdb.git] / gas / mpw-build.in
CommitLineData
6d15011d
SS
1# Script fragment to build MPW GAS.
2
3Set BuildTarget "none"
4
5Loop
6 Break If {#} == 0
7 If "{1}" =~ /--srcdir/
8 Set srcdir "{2}"
9 Shift 1
10 Else If "{1}" =~ /--topdir/
11 Set topsrcdir "{2}"
12 Shift 1
13 Else If "{1}" =~ /--prefix/
14 Set prefix "{2}"
15 Shift 1
16 Else If "{1}" =~ /-v/
17 Set verify 1
18 Set verifystr "-v"
19 Shift 1
20 Else
21 If "{BuildTarget}" =~ /none/
22 Set BuildTarget "{1}"
23 Else
24 Echo Only one build target allowed, ignoring "{1}"
25 End If
26 End If
27 Shift 1
28End Loop
29
30Set libsubdir "{libdir}"gcc-lib:"{target_canonical}":"{version}":
31
32If "{BuildTarget}" =~ /all/
33 Echo "Set Echo 1" >all.makeout
34 Make >>all.makeout
35 all.makeout
36 Delete all.makeout
37Else If "{BuildTarget}" =~ /install/
38 If "`Exists "{prefix}"`" == ""
39 Echo "{prefix}" does not exist, cannot install anything
40 Exit 1
41 End If
42 If "`Exists "{bindir}"`" == ""
43 NewFolder "{bindir}"
44 End If
45 Duplicate -y :as.new "{bindir}"as
46Else
47 Echo {BuildTarget} not a valid build target
48End If
This page took 0.03778 seconds and 4 git commands to generate.