]> Git Repo - binutils.git/blob - ld/mpw-build.in
keep ld.cdtest
[binutils.git] / ld / mpw-build.in
1 # Script fragment to build MPW GAS.
2
3 Set BuildTarget "none"
4
5 Loop
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
28 End Loop
29
30 Set libsubdir "{libdir}"gcc-lib:"{target_canonical}":"{version}":
31
32 If "{BuildTarget}" =~ /all/
33         Echo "Set Echo 1" >all.makeout
34         Make >>all.makeout
35         all.makeout
36         Delete all.makeout
37 Else 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 :ld.new "{bindir}"ld
46 Else
47         Echo {BuildTarget} not a valid build target
48 End If
This page took 0.025853 seconds and 4 git commands to generate.