1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Add support for compiling 'vers' resources into Mac applications. This is

needlessly complex because Rez's preprocessor doesn't do either ANSI or K&R
stringification, and the MPW Shell isn't much good as shells go.

Also make _all_ the Mac executables depend on reources, not just the
Classic 68K one.

[originally from svn r2389]
This commit is contained in:
Ben Harris
2002-12-30 23:14:11 +00:00
parent 14432c234a
commit 47f459bb5f
2 changed files with 52 additions and 3 deletions

View File

@ -593,6 +593,8 @@ END
print $_;
print <<END;
ROptions = `Echo "{VER}" | StreamEdit -e "1,\$ replace /=(\xc5)\xa81\xb0/ 'STR=\xb6\xb6\xb6\xb6\xb6"' \xa81 '\xb6\xb6\xb6\xb6\xb6"'"`
# -w 35 disables "unused parameter" warnings
COptions = -i : -i :: -w 35 -w err -proto strict
COptions_68K = {COptions} -model far -opt space
@ -649,14 +651,14 @@ foreach $p (&prognames("M")) {
print &splitline("\tSetFile -a BM {Targ}", 69, "\xb6"), "\n\n";
$objstr = &objects($p, "X.cfm68k.o", "", undef);
print &splitline("$prog.cfm68k \xc4 $objstr", undef, "\xb6"), "\n";
print &splitline("$prog.cfm68k \xc4 $objstr $rsrc", undef, "\xb6"), "\n";
print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
print &splitline("\tILink -o {Targ} {LinkOptions_CFM68K} " .
$objstr . " {Libs_CFM68K}", 69, "\xb6"), "\n";
print &splitline("\tSetFile -a BM {Targ}", 69, "\xb6"), "\n\n";
$objstr = &objects($p, "X.ppc.o", "", undef);
print &splitline("$prog.ppc \xc4 $objstr", undef, "\xb6"), "\n";
print &splitline("$prog.ppc \xc4 $objstr $rsrc", undef, "\xb6"), "\n";
print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
print &splitline("\tPPCLink -o {Targ} {LinkOptions_PPC} " .
$objstr . " {Libs_PPC}", 69, "\xb6"), "\n";