1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00
putty-source/Makefile.mpw

129 lines
2.8 KiB
Makefile
Raw Normal View History

# $Id: Makefile.mpw,v 1.1.2.7 1999/03/29 23:55:06 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.
MAKEFILE = Makefile.mpw
<EFBFBD>MondoBuild<EFBFBD> = # Make blank to avoid rebuilds when makefile is modified
Includes =
Sym<EFBFBD>68K =
Sym<EFBFBD>PPC =
COptions = {Includes} {Sym<EFBFBD>68K} -proto strict -opt all
# 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>
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>
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>
"{Libraries}MacRuntime.o" <20>
"{Libraries}IntEnv.o" <20>
"{Libraries}Interface.o"
Libs<EFBFBD>PPC = "{SharedLibraries}InterfaceLib" <20>
"{SharedLibraries}StdCLib" <20>
"{SharedLibraries}MathLib" <20>
"{SharedLibraries}AppearanceLib" -weaklib AppearanceLib <20>
"{PPCLibraries}StdCRuntime.o" <20>
"{PPCLibraries}PPCCRuntime.o"
# 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
PuTTY.ppc <EFBFBD><EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} {Objects<EFBFBD>PPC}
PPCLink <20>
-o {Targ} {Sym<EFBFBD>PPC} <20>
-t 'APPL' <20>
-c 'pTTY' <20>
{Objects<EFBFBD>PPC} <20>
{Libs<EFBFBD>PPC}
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>
-o {Targ} {Sym<EFBFBD>68K} <20>
-t 'APPL' <20>
-c 'pTTY' <20>
{Objects<EFBFBD>68K} <20>
{Libs<EFBFBD>68K}
END
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
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