mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-11 16:23:55 -05:00
PowerPC build sorted and general serious tidying-up of Makefile.
[originally from svn r133]
This commit is contained in:
171
Makefile.mpw
171
Makefile.mpw
@ -1,4 +1,4 @@
|
||||
# $Id: Makefile.mpw,v 1.1.2.4 1999/03/27 15:39:45 ben Exp $
|
||||
# $Id: Makefile.mpw,v 1.1.2.5 1999/03/28 15:23:37 ben Exp $
|
||||
# This is the Makefile for building PuTTY for the Mac OS.
|
||||
# Users of non-Mac systems will see some pretty strange characters around.
|
||||
|
||||
@ -6,44 +6,48 @@ MAKEFILE = Makefile.mpw
|
||||
<EFBFBD>MondoBuild<EFBFBD> = # Make blank to avoid rebuilds when makefile is modified
|
||||
Includes =
|
||||
Sym<EFBFBD>68K =
|
||||
ObjDir<EFBFBD>68K =
|
||||
Sym<EFBFBD>PPC =
|
||||
ObjDir<EFBFBD>PPC =
|
||||
|
||||
COptions = {Includes} {Sym<EFBFBD>68K} -proto strict -opt all
|
||||
PPCCOptions = {Includes} {Sym<EFBFBD>PPC} -opt size
|
||||
# disable "unused parameter" warnings
|
||||
PPCCOptions = {Includes} {Sym<EFBFBD>PPC} -w 35
|
||||
|
||||
# short names for targets
|
||||
68k <EFBFBD> PuTTY
|
||||
ppc <EFBFBD> PuTTY.ppc
|
||||
fat <EFBFBD> PuTTY.fat
|
||||
|
||||
Objects<EFBFBD>68K = <20>
|
||||
"{ObjDir<69>68K}mac.c.o" <20>
|
||||
"{ObjDir<69>68K}maccfg.c.o" <20>
|
||||
"{ObjDir<69>68K}macterm.c.o" <20>
|
||||
"{ObjDir<69>68K}misc.c.o" <20>
|
||||
# "{ObjDir<69>68K}ssh.c.o" <20>
|
||||
# "{ObjDir<69>68K}sshcrc.c.o" <20>
|
||||
# "{ObjDir<69>68K}sshdes.c.o" <20>
|
||||
# "{ObjDir<69>68K}sshmd5.c.o" <20>
|
||||
# "{ObjDir<69>68K}sshrand.c.o" <20>
|
||||
# "{ObjDir<69>68K}sshrsa.c.o" <20>
|
||||
# "{ObjDir<69>68K}sshsha.c.o" <20>
|
||||
# "{ObjDir<69>68K}telnet.c.o" <20>
|
||||
"{ObjDir<69>68K}terminal.c.o" <20>
|
||||
"{ObjDir<69>68K}testback.c.o"
|
||||
mac.c.o <20>
|
||||
maccfg.c.o <20>
|
||||
macterm.c.o <20>
|
||||
misc.c.o <20>
|
||||
# ssh.c.o <20>
|
||||
# sshcrc.c.o <20>
|
||||
# sshdes.c.o <20>
|
||||
# sshmd5.c.o <20>
|
||||
# sshrand.c.o <20>
|
||||
# sshrsa.c.o <20>
|
||||
# sshsha.c.o <20>
|
||||
# telnet.c.o <20>
|
||||
terminal.c.o <20>
|
||||
testback.c.o
|
||||
|
||||
Objects<EFBFBD>PPC = <20>
|
||||
"{ObjDir<69>PPC}mac.c.x" <20>
|
||||
"{ObjDir<69>PPC}maccfg.c.x" <20>
|
||||
"{ObjDir<69>PPC}macterm.c.x" <20>
|
||||
"{ObjDir<69>PPC}misc.c.x" <20>
|
||||
# "{ObjDir<69>PPC}ssh.c.x" <20>
|
||||
# "{ObjDir<69>PPC}sshcrc.c.x" <20>
|
||||
# "{ObjDir<69>PPC}sshdes.c.x" <20>
|
||||
# "{ObjDir<69>PPC}sshmd5.c.x" <20>
|
||||
# "{ObjDir<69>PPC}sshrand.c.x" <20>
|
||||
# "{ObjDir<69>PPC}sshrsa.c.x" <20>
|
||||
# "{ObjDir<69>PPC}sshsha.c.x" <20>
|
||||
# "{ObjDir<69>PPC}telnet.c.x" <20>
|
||||
"{ObjDir<69>PPC}terminal.c.x" <20>
|
||||
"{ObjDir<69>PPC}testback.c.x"
|
||||
mac.c.x <20>
|
||||
maccfg.c.x <20>
|
||||
macterm.c.x <20>
|
||||
misc.c.x <20>
|
||||
# ssh.c.x <20>
|
||||
# sshcrc.c.x <20>
|
||||
# sshdes.c.x <20>
|
||||
# sshmd5.c.x <20>
|
||||
# sshrand.c.x <20>
|
||||
# sshrsa.c.x <20>
|
||||
# sshsha.c.x <20>
|
||||
# telnet.c.x <20>
|
||||
terminal.c.x <20>
|
||||
testback.c.x
|
||||
|
||||
|
||||
Libs<EFBFBD>68K = "{CLibraries}StdCLib.o" <20>
|
||||
@ -54,31 +58,28 @@ Libs
|
||||
Libs<EFBFBD>PPC = "{SharedLibraries}InterfaceLib" <20>
|
||||
"{SharedLibraries}StdCLib" <20>
|
||||
"{SharedLibraries}MathLib" <20>
|
||||
"{SharedLibraries}AppearanceLib" <20>
|
||||
"{PPCLibraries}StdCRuntime.o" <20>
|
||||
"{PPCLibraries}PPCCRuntime.o" <20>
|
||||
"{PPCLibraries}PPCToolLibs.o"
|
||||
"{PPCLibraries}PPCCRuntime.o"
|
||||
|
||||
PuTTY.ppc <EFBFBD><EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} {Objects<EFBFBD>PPC}
|
||||
PPCLink <EFBFBD>
|
||||
-o {Targ} {Sym<EFBFBD>PPC} <EFBFBD>
|
||||
{Objects<EFBFBD>PPC} <EFBFBD>
|
||||
-t 'APPL' <EFBFBD>
|
||||
-c 'pTTY' <EFBFBD>
|
||||
{Objects<EFBFBD>PPC} <EFBFBD>
|
||||
{Libs<EFBFBD>PPC}
|
||||
|
||||
|
||||
PuTTY <EFBFBD><EFBFBD> {Objects<EFBFBD>68K} {Libs<EFBFBD>68K}
|
||||
IF (`exists {Targ}.NJ`)
|
||||
ILink <EFBFBD>
|
||||
-compact <EFBFBD>
|
||||
-o {Targ} {Sym<EFBFBD>68K} <EFBFBD>
|
||||
-t 'APPL' <EFBFBD>
|
||||
-c 'pTTY' <EFBFBD>
|
||||
-newerdeps {NewerDeps}
|
||||
ELSE
|
||||
ILink <EFBFBD>
|
||||
-compact <EFBFBD>
|
||||
-o {Targ} {Sym<EFBFBD>68K} <EFBFBD>
|
||||
-t 'APPL' <EFBFBD>
|
||||
-c 'pTTY' <EFBFBD>
|
||||
{Objects<EFBFBD>68K} <EFBFBD>
|
||||
@ -88,75 +89,33 @@ PuTTY
|
||||
PuTTY <EFBFBD><EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} mac_res.r macresid.h
|
||||
Rez mac_res.r -o {Targ} {Includes} -append
|
||||
|
||||
PuTTY.ppc <EFBFBD><EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} mac_res.r macresid.h
|
||||
Rez mac_res.r -o {Targ} {Includes} -append
|
||||
|
||||
"{ObjDir<69>68K}mac.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} mac.c putty.h mac.h macresid.h
|
||||
{C} mac.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}mac.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} mac.c putty.h mac.h macresid.h
|
||||
{PPCC} mac.c -o {Targ} {PPCCOptions}
|
||||
PuTTY.fat <EFBFBD> PuTTY PuTTY.ppc
|
||||
Duplicate -y PuTTY PuTTY.fat
|
||||
MergeFragment PuTTY.ppc PuTTY.fat
|
||||
|
||||
.c.o <EFBFBD> .c
|
||||
{C} {default}.c -o {Targ} {COptions}
|
||||
|
||||
"{ObjDir<69>68K}maccfg.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} maccfg.c putty.h mac.h macresid.h
|
||||
{C} maccfg.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}maccfg.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} maccfg.c putty.h mac.h macresid.h
|
||||
{PPCC} maccfg.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}macterm.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} macterm.c mac.h putty.h
|
||||
{C} macterm.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}macterm.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} macterm.c mac.h putty.h
|
||||
{PPCC} macterm.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}misc.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} misc.c putty.h
|
||||
{C} misc.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}misc.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} misc.c putty.h
|
||||
{PPCC} misc.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}ssh.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} ssh.c
|
||||
{C} ssh.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}ssh.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} ssh.c
|
||||
{PPCC} ssh.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}sshcrc.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshcrc.c
|
||||
{C} sshcrc.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}sshcrc.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshcrc.c
|
||||
{PPCC} sshcrc.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}sshdes.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshdes.c
|
||||
{C} sshdes.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}sshdes.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshdes.c
|
||||
{PPCC} sshdes.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}sshmd5.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshmd5.c
|
||||
{C} sshmd5.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}sshmd5.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshmd5.c
|
||||
{PPCC} sshmd5.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}sshrand.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshrand.c
|
||||
{C} sshrand.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}sshrand.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshrand.c
|
||||
{PPCC} sshrand.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}sshrsa.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshrsa.c
|
||||
{C} sshrsa.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}sshrsa.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshrsa.c
|
||||
{PPCC} sshrsa.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}sshsha.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshsha.c
|
||||
{C} sshsha.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}sshsha.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} sshsha.c
|
||||
{PPCC} sshsha.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}telnet.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} telnet.c
|
||||
{C} telnet.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}telnet.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} telnet.c
|
||||
{PPCC} telnet.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}terminal.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} terminal.c putty.h
|
||||
{C} terminal.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}terminal.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} terminal.c putty.h
|
||||
{PPCC} terminal.c -o {Targ} {PPCCoptions}
|
||||
|
||||
"{ObjDir<69>68K}testback.c.o" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} testback.c putty.h
|
||||
{C} testback.c -o {Targ} {COptions}
|
||||
"{ObjDir<69>PPC}testback.c.x" <EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} testback.c putty.h
|
||||
{PPCC} testback.c -o {Targ} {PPCCoptions}
|
||||
# The odd stuff here seems to stop afpd getting confused.
|
||||
.c.x <EFBFBD> .c
|
||||
echo -n > {Targ}
|
||||
setfile -t XCOF {Targ}
|
||||
{PPCC} {default}.c -o {Targ} {PPCCOptions}
|
||||
|
||||
mac.c.o mac.c.x <EFBFBD> putty.h mac.h macresid.h
|
||||
maccfg.c.o maccfg.c.x <EFBFBD> putty.h mac.h macresid.h
|
||||
macterm.c.o macterm.c.x <EFBFBD> putty.h mac.h
|
||||
misc.c.o misc.c.x <EFBFBD> putty.h
|
||||
ssh.c.o ssh.c.x <EFBFBD> putty.h ssh.h
|
||||
sshcrc.c.o sshcrc.c.x <EFBFBD>
|
||||
sshdes.c.o sshdes.c.x <EFBFBD> ssh.h
|
||||
sshmd5.c.o sshmd5.c.x <EFBFBD> ssh.h
|
||||
sshrand.c.o sshrand.c.x <EFBFBD> ssh.h
|
||||
sshrsa.c.o sshrsa.c.x <EFBFBD> ssh.h
|
||||
sshsha.c.o sshsha.c.x <EFBFBD> ssh.h
|
||||
telnet.c.o telnet.c.x <EFBFBD> putty.h
|
||||
terminal.c.o terminal.c.x <EFBFBD> putty.h
|
||||
testback.c.o testback.c.x <EFBFBD> putty.h
|
||||
|
15
mkputty.mpw
15
mkputty.mpw
@ -1,6 +1,17 @@
|
||||
# $Id: mkputty.mpw,v 1.1.2.5 1999/03/28 02:06:11 ben Exp $
|
||||
# $Id: mkputty.mpw,v 1.1.2.6 1999/03/28 15:23:37 ben Exp $
|
||||
|
||||
set program "{1}"
|
||||
shift
|
||||
if "{program}" == "" || "{program}" == "68k"
|
||||
set program PuTTY
|
||||
end
|
||||
if "{program}" == "ppc"
|
||||
set program PuTTY.ppc
|
||||
end
|
||||
if "{program}" == "fat"
|
||||
set program PuTTY.fat
|
||||
end
|
||||
|
||||
Set program PuTTY
|
||||
Set makefile Makefile.mpw
|
||||
|
||||
# Run Make, then execute its output.
|
||||
|
Reference in New Issue
Block a user