nlmconv.1: minor fix
[deliverable/binutils-gdb.git] / binutils / mpw-build.in
1 # Script fragment to build MPW binutils.
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 Set AR_PROG ar
33 Set RANLIB_PROG ranlib
34 # objcopy and strip should be the same program
35 Set OBJCOPY_PROG objcopy
36 Set STRIP_PROG strip
37 Set STRINGS_PROG strings
38 # These should all be the same program too.
39 Set SIZE_PROG size
40 Set NM_PROG nm
41 Set OBJDUMP_PROG objdump
42 # This is the demangler, as a standalone program.
43 Set DEMANGLER_PROG cplusfilt
44 Set NLMCONV_PROG nlmconv
45
46 Set PROGS "{SIZE_PROG} {OBJDUMP_PROG} {NM_PROG} {AR_PROG} {STRINGS_PROG} {STRIP_PROG} {RANLIB_PROG} {DEMANGLER_PROG} {OBJCOPY_PROG}"
47
48 If "{BuildTarget}" =~ /all/
49 Echo "Set Echo 1" >all.makeout
50 Make >>all.makeout
51 all.makeout
52 Delete all.makeout
53 Else If "{BuildTarget}" =~ /install/
54 If "`Exists "{prefix}"`" == ""
55 Echo "{prefix}" does not exist, cannot install anything
56 Exit 1
57 End If
58 If "`Exists "{bindir}"`" == ""
59 NewFolder "{bindir}"
60 End If
61 # Need to copy all the tools
62 For prog in {PROGS}
63 Duplicate -y :{prog} "{bindir}"{prog}
64 End For
65 Else
66 Echo {BuildTarget} not a valid build target
67 End If
This page took 0.03599 seconds and 4 git commands to generate.