]> Git Repo - binutils.git/blame - binutils/mpw-build.in
* nlmconv.c (main): Use bfd_get_flavour instead of struct member.
[binutils.git] / binutils / mpw-build.in
CommitLineData
5fd51993
SS
1# Script fragment to build MPW binutils.
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
74557dc6
SS
32Set AR_PROG ar
33Set RANLIB_PROG ranlib
34# objcopy and strip should be the same program
35Set OBJCOPY_PROG objcopy
36Set STRIP_PROG strip
37Set STRINGS_PROG strings
38# These should all be the same program too.
39Set SIZE_PROG size
40Set NM_PROG nm
41Set OBJDUMP_PROG objdump
42# This is the demangler, as a standalone program.
43Set DEMANGLER_PROG cplusfilt
44Set NLMCONV_PROG nlmconv
45
46Set PROGS "{SIZE_PROG} {OBJDUMP_PROG} {NM_PROG} {AR_PROG} {STRINGS_PROG} {STRIP_PROG} {RANLIB_PROG} {DEMANGLER_PROG} {OBJCOPY_PROG}"
47
5fd51993
SS
48If "{BuildTarget}" =~ /all/
49 Echo "Set Echo 1" >all.makeout
50 Make >>all.makeout
51 all.makeout
52 Delete all.makeout
53Else 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
74557dc6
SS
62 For prog in {PROGS}
63 Duplicate -y :{prog} "{bindir}"{prog}
64 End For
5fd51993
SS
65Else
66 Echo {BuildTarget} not a valid build target
67End If
This page took 0.030653 seconds and 4 git commands to generate.