1999-03-28 17:34:36 +00:00
|
|
|
|
# $Id: Makefile.mpw,v 1.1.2.6 1999/03/28 17:34:36 ben Exp $
|
1999-02-19 15:28:27 +00:00
|
|
|
|
# This is the Makefile for building PuTTY for the Mac OS.
|
|
|
|
|
# Users of non-Mac systems will see some pretty strange characters around.
|
|
|
|
|
|
1999-03-13 16:51:46 +00:00
|
|
|
|
MAKEFILE = Makefile.mpw
|
1999-03-14 20:07:04 +00:00
|
|
|
|
<EFBFBD>MondoBuild<EFBFBD> = # Make blank to avoid rebuilds when makefile is modified
|
1999-02-19 15:28:27 +00:00
|
|
|
|
Includes =
|
1999-03-14 20:07:04 +00:00
|
|
|
|
Sym<EFBFBD>68K =
|
1999-03-27 15:39:46 +00:00
|
|
|
|
Sym<EFBFBD>PPC =
|
1999-02-19 15:28:27 +00:00
|
|
|
|
|
1999-03-07 23:15:56 +00:00
|
|
|
|
COptions = {Includes} {Sym<EFBFBD>68K} -proto strict -opt all
|
1999-03-28 15:23:37 +00:00
|
|
|
|
# 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
|
1999-02-19 15:28:27 +00:00
|
|
|
|
|
|
|
|
|
Objects<EFBFBD>68K = <20>
|
1999-03-28 15:23:37 +00:00
|
|
|
|
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
|
1999-02-19 15:28:27 +00:00
|
|
|
|
|
1999-03-27 15:39:46 +00:00
|
|
|
|
Objects<EFBFBD>PPC = <20>
|
1999-03-28 15:23:37 +00:00
|
|
|
|
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
|
1999-03-27 15:39:46 +00:00
|
|
|
|
|
|
|
|
|
|
1999-03-14 20:07:04 +00:00
|
|
|
|
Libs<EFBFBD>68K = "{CLibraries}StdCLib.o" <20>
|
1999-02-19 15:28:27 +00:00
|
|
|
|
"{Libraries}MacRuntime.o" <20>
|
|
|
|
|
"{Libraries}IntEnv.o" <20>
|
|
|
|
|
"{Libraries}Interface.o"
|
|
|
|
|
|
1999-03-27 15:39:46 +00:00
|
|
|
|
Libs<EFBFBD>PPC = "{SharedLibraries}InterfaceLib" <20>
|
|
|
|
|
"{SharedLibraries}StdCLib" <20>
|
|
|
|
|
"{SharedLibraries}MathLib" <20>
|
1999-03-28 15:23:37 +00:00
|
|
|
|
"{SharedLibraries}AppearanceLib" <20>
|
1999-03-27 15:39:46 +00:00
|
|
|
|
"{PPCLibraries}StdCRuntime.o" <20>
|
1999-03-28 15:23:37 +00:00
|
|
|
|
"{PPCLibraries}PPCCRuntime.o"
|
1999-03-27 15:39:46 +00:00
|
|
|
|
|
1999-03-28 17:34:36 +00:00
|
|
|
|
# pseudo-targets
|
|
|
|
|
all <EFBFBD> 68k ppc fat
|
|
|
|
|
clean <EFBFBD>
|
|
|
|
|
delete -i {Objects<EFBFBD>68K} {Objects<EFBFBD>PPC} <20>
|
|
|
|
|
PuTTY PuTTY.fat PuTTY.ppc PuTTY.NJ
|
|
|
|
|
|
1999-03-27 15:39:46 +00:00
|
|
|
|
PuTTY.ppc <EFBFBD><EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} {Objects<EFBFBD>PPC}
|
|
|
|
|
PPCLink <20>
|
|
|
|
|
-o {Targ} {Sym<EFBFBD>PPC} <20>
|
|
|
|
|
-t 'APPL' <20>
|
|
|
|
|
-c 'pTTY' <20>
|
1999-03-28 15:23:37 +00:00
|
|
|
|
{Objects<EFBFBD>PPC} <20>
|
1999-03-27 15:39:46 +00:00
|
|
|
|
{Libs<EFBFBD>PPC}
|
|
|
|
|
|
|
|
|
|
|
1999-03-14 20:07:04 +00:00
|
|
|
|
PuTTY <EFBFBD><EFBFBD> {Objects<EFBFBD>68K} {Libs<EFBFBD>68K}
|
|
|
|
|
IF (`exists {Targ}.NJ`)
|
|
|
|
|
ILink <20>
|
|
|
|
|
-o {Targ} {Sym<EFBFBD>68K} <20>
|
|
|
|
|
-t 'APPL' <20>
|
|
|
|
|
-c 'pTTY' <20>
|
|
|
|
|
-newerdeps {NewerDeps}
|
|
|
|
|
ELSE
|
|
|
|
|
ILink <20>
|
1999-03-28 17:34:36 +00:00
|
|
|
|
-o {Targ} {Sym<EFBFBD>68K} <20>
|
1999-03-14 20:07:04 +00:00
|
|
|
|
-t 'APPL' <20>
|
|
|
|
|
-c 'pTTY' <20>
|
|
|
|
|
{Objects<EFBFBD>68K} <20>
|
|
|
|
|
{Libs<EFBFBD>68K}
|
|
|
|
|
END
|
1999-02-19 15:28:27 +00:00
|
|
|
|
|
1999-02-21 10:29:13 +00:00
|
|
|
|
PuTTY <EFBFBD><EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} mac_res.r macresid.h
|
|
|
|
|
Rez mac_res.r -o {Targ} {Includes} -append
|
1999-02-19 15:28:27 +00:00
|
|
|
|
|
1999-03-28 15:23:37 +00:00
|
|
|
|
PuTTY.ppc <EFBFBD><EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} mac_res.r macresid.h
|
|
|
|
|
Rez mac_res.r -o {Targ} {Includes} -append
|
1999-02-19 15:28:27 +00:00
|
|
|
|
|
1999-03-28 15:23:37 +00:00
|
|
|
|
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}
|
|
|
|
|
|
|
|
|
|
# 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
|