1 # Script fragment to build MPW binutils.
10 Else If "{1}" =~ /--topdir/
13 Else If "{1}" =~ /--prefix/
21 If "{BuildTarget}" =~ /none/
24 Echo Only one build target allowed, ignoring "{1}"
30 Set libsubdir "{libdir}"gcc-lib:"{target_canonical}":"{version}":
33 Set RANLIB_PROG ranlib
34 # objcopy and strip should be the same program
35 Set OBJCOPY_PROG objcopy
37 Set STRINGS_PROG strings
38 # These should all be the same program too.
41 Set OBJDUMP_PROG objdump
42 # This is the demangler, as a standalone program.
43 Set DEMANGLER_PROG cplusfilt
44 Set NLMCONV_PROG nlmconv
46 Set PROGS "{SIZE_PROG} {OBJDUMP_PROG} {NM_PROG} {AR_PROG} {STRINGS_PROG} {STRIP_PROG} {RANLIB_PROG} {DEMANGLER_PROG} {OBJCOPY_PROG}"
48 If "{BuildTarget}" =~ /all/
49 Echo "Set Echo 1" >all.makeout
53 Else If "{BuildTarget}" =~ /install/
54 If "`Exists "{prefix}"`" == ""
55 Echo "{prefix}" does not exist, cannot install anything
58 If "`Exists "{bindir}"`" == ""
61 # Need to copy all the tools
63 Duplicate -y :{prog} "{bindir}"{prog}
66 Echo {BuildTarget} not a valid build target