From 9098d00a6e799b6c051f6d0db63f7a23ad3399a4 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 7 Feb 2003 01:33:24 +0000 Subject: [PATCH] Clean up Carbon build procedures somewhat. I still don't have anything that actually works, but I think I'm getting closer. git-svn-id: svn://svn.tartarus.org/sgt/putty@2810 cda61777-01e9-0310-a592-d414129be87e --- mac/README.mac | 24 ++++++++++++++++-------- mac/mac.c | 12 ++++++++++-- mkfiles.pl | 8 ++++++-- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/mac/README.mac b/mac/README.mac index 0d4ae5fe..fbe34cfd 100644 --- a/mac/README.mac +++ b/mac/README.mac @@ -1,4 +1,4 @@ -$Id: README.mac,v 1.24 2003/02/02 16:02:50 ben Exp $ +$Id: README.mac,v 1.25 2003/02/07 01:33:24 ben Exp $ Information about PuTTY for the Mac OS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= @@ -12,19 +12,27 @@ Compiling it: MPW + Install this in the usual way. - Universal Headers (optional) + Universal Headers + Install using the script in "Documentation:MPW Users - ReadMe". Text Encoding Converter SDK - - 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", - and the contents of the "Stub Libraries" directory into - "Interfaces&Libraries:Libraries:SharedLibraries". + Copy contents of "68K Static Libraries" to + "Interfaces&Libraries:Libraries:Libraries". + Copy contents of "Stub Libraries" to + "Interfaces&Libraries:Libraries:SharedLibraries". + + CarbonStdCLib.o + + Copy contents of "CIncludes" to + "Interfaces&Libraries:Interfaces:CIncludes". + Copy contents of "PPCLibraries" to + "Interfaces&Libraries:Libraries:PPCLibraries". The "mkputty.mpw" script does all the work, and currently producess a Classic 68K build of PuTTY called "PuTTY.68k", a non-Carbon PowerPC diff --git a/mac/mac.c b/mac/mac.c index 2c4794df..4c317ed4 100644 --- a/mac/mac.c +++ b/mac/mac.c @@ -1,4 +1,4 @@ -/* $Id: mac.c,v 1.45 2003/02/04 23:39:26 ben Exp $ */ +/* $Id: mac.c,v 1.46 2003/02/07 01:33:24 ben Exp $ */ /* * Copyright (c) 1999 Ben Harris * All rights reserved. @@ -63,7 +63,15 @@ #include "ssh.h" #include "mac.h" -#if !TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON +/* + * This is used by (I think) CarbonStdCLib, but only exists in + * CarbonLib 1.1 and later. Muppets. Happily, it's documented to be + * a synonym for NULL. + */ +#include +const CFAllocatorRef kCFAllocatorDefault = NULL; +#else QDGlobals qd; #endif diff --git a/mkfiles.pl b/mkfiles.pl index 2ac8e160..626141b4 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -617,7 +617,7 @@ LinkOptions = -c 'pTTY' -fragname PuTTY LinkOptions_68K = {LinkOptions} -br 68k -model far -compact LinkOptions_CFM68K = {LinkOptions} -br 020 -model cfmseg -compact LinkOptions_PPC = {LinkOptions} -LinkOptions_Carbon = {LinkOptions} +LinkOptions_Carbon = -m __appstart -w {LinkOptions} Libs_68K = "{CLibraries}StdCLib.far.o" \xb6 "{Libraries}MacRuntime.o" \xb6 @@ -660,7 +660,11 @@ Libs_PPC = {Libs_CFM} \xb6 "{PPCLibraries}OpenTransportAppPPC.o" \xb6 "{PPCLibraries}OpenTptInetPPC.o" -Libs_Carbon = "{SharedLibraries}CarbonLib" +Libs_Carbon = "{PPCLibraries}CarbonStdCLib.o" \xb6 + "{PPCLibraries}StdCRuntime.o" \xb6 + "{PPCLibraries}PPCCRuntime.o" \xb6 + "{SharedLibraries}CarbonLib" \xb6 + "{SharedLibraries}StdCLib" END print &splitline("all \xc4 " . join(" ", &progrealnames("M")), undef, "\xb6"); -- 2.11.0