From c13245009c2ca79087dd317a873dd35dee430842 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 29 Dec 2002 19:01:33 +0000 Subject: [PATCH] Add support for building a CFM-68K version of PuTTY, which is rather smaller than the Classic 68K version. This requires installing more bits of the Text Encoding Converter SDK, since Apple seem to have forgotten to put _any_ 68k bits for it, either CFM or Classic, in Universal Interfaces. Also don't bother linking against libraries we don't seem to need. git-svn-id: svn://svn.tartarus.org/sgt/putty@2379 cda61777-01e9-0310-a592-d414129be87e --- mac/README.mac | 9 ++++++--- mkfiles.pl | 41 +++++++++++++++++++++-------------------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/mac/README.mac b/mac/README.mac index f7d67dde..931e7782 100644 --- a/mac/README.mac +++ b/mac/README.mac @@ -1,4 +1,4 @@ -$Id: README.mac,v 1.4 2002/12/29 15:44:15 ben Exp $ +$Id: README.mac,v 1.5 2002/12/29 19:01:33 ben Exp $ Information about PuTTY for the Mac OS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= @@ -22,14 +22,17 @@ Compiling it: Install MPW, install the new Universal Headers (optional), then put the contents of the "68K Static Libraries" directory of the Text - Encoding Converter SDK into "Interfaces&Libraries:Libraries:Libraries". + Encoding Converter SDK into "Interfaces&Libraries:Libraries:Libraries", + and the contents of the "Stub Libraries" directory into + "Interfaces&Libraries:Libraries:SharedLibraries". The "mkputty.mpw" script does most of the work, but currently needs you to run "Rez -append -o PuTTY.68k mac_res.r", and the same for PuTTY.ppc to get the resources compiled in. The current Makefile producess a Classic 68K build of PuTTY called - "PuTTY.68k" and a non-Carbon PowerPC build called "PuTTY.ppc". + "PuTTY.68k", a CFM-68K build called "PuTTY.cfm68k", and a non-Carbon + PowerPC build called "PuTTY.ppc". Runtime requirements: diff --git a/mkfiles.pl b/mkfiles.pl index b1f6530b..5ed32918 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -591,10 +591,14 @@ print <{deps}->[0], " -o {Targ} {COptions_68K}\n\n"; } +foreach $d (&deps("X.cfm68k.o", undef, "::", ":")) { + print &splitline(sprintf("%s \xc4 %s", $d->{obj}, join " ", @{$d->{deps}}), + undef, "\xb6"), "\n"; + print "\t{C} ", $d->{deps}->[0], " -o {Targ} {COptions_CFM68K}\n\n"; +} foreach $d (&deps("X.ppc.o", undef, "::", ":")) { print &splitline(sprintf("%s \xc4 %s", $d->{obj}, join " ", @{$d->{deps}}), undef, "\xb6"), "\n"; -- 2.11.0