]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - Makefile.mpw
PowerPC build sorted and general serious tidying-up of Makefile.
[PuTTY.git] / Makefile.mpw
1 # $Id: Makefile.mpw,v 1.1.2.5 1999/03/28 15:23:37 ben Exp $
2 # This is the Makefile for building PuTTY for the Mac OS.
3 # Users of non-Mac systems will see some pretty strange characters around.
4
5 MAKEFILE     = Makefile.mpw
6 ¥MondoBuild¥ =  # Make blank to avoid rebuilds when makefile is modified
7 Includes     =
8 Sym¥68K      =
9 Sym¥PPC      = 
10
11 COptions     = {Includes} {Sym¥68K} -proto strict -opt all
12 # disable "unused parameter" warnings
13 PPCCOptions  = {Includes} {Sym¥PPC} -w 35
14
15 # short names for targets
16 68k Ä PuTTY
17 ppc Ä PuTTY.ppc
18 fat Ä PuTTY.fat
19
20 Objects¥68K  = ¶
21                 mac.c.o ¶
22                 maccfg.c.o ¶
23                 macterm.c.o ¶
24                 misc.c.o ¶
25 #               ssh.c.o ¶
26 #               sshcrc.c.o ¶
27 #               sshdes.c.o ¶
28 #               sshmd5.c.o ¶
29 #               sshrand.c.o ¶
30 #               sshrsa.c.o ¶
31 #               sshsha.c.o ¶
32 #               telnet.c.o ¶
33                 terminal.c.o ¶
34                 testback.c.o
35
36 Objects¥PPC  = ¶
37                 mac.c.x ¶
38                 maccfg.c.x ¶
39                 macterm.c.x ¶
40                 misc.c.x ¶
41 #               ssh.c.x ¶
42 #               sshcrc.c.x ¶
43 #               sshdes.c.x ¶
44 #               sshmd5.c.x ¶
45 #               sshrand.c.x ¶
46 #               sshrsa.c.x ¶
47 #               sshsha.c.x ¶
48 #               telnet.c.x ¶
49                 terminal.c.x ¶
50                 testback.c.x
51
52
53 Libs¥68K  =     "{CLibraries}StdCLib.o" ¶
54                 "{Libraries}MacRuntime.o" ¶
55                 "{Libraries}IntEnv.o" ¶
56                 "{Libraries}Interface.o"
57
58 Libs¥PPC  =     "{SharedLibraries}InterfaceLib" ¶
59                 "{SharedLibraries}StdCLib" ¶
60                 "{SharedLibraries}MathLib" ¶
61                 "{SharedLibraries}AppearanceLib" ¶
62                 "{PPCLibraries}StdCRuntime.o" ¶
63                 "{PPCLibraries}PPCCRuntime.o"
64
65 PuTTY.ppc ÄÄ {¥MondoBuild¥} {Objects¥PPC}
66         PPCLink ¶
67                 -o {Targ} {Sym¥PPC} ¶
68                 -t 'APPL' ¶
69                 -c 'pTTY' ¶
70                 {Objects¥PPC} ¶
71                 {Libs¥PPC}
72
73
74 PuTTY ÄÄ {Objects¥68K} {Libs¥68K}
75         IF (`exists {Targ}.NJ`)
76                 ILink ¶
77                         -o {Targ} {Sym¥68K} ¶
78                         -t 'APPL' ¶
79                         -c 'pTTY' ¶
80                         -newerdeps {NewerDeps}
81         ELSE
82                 ILink ¶
83                         -t 'APPL' ¶
84                         -c 'pTTY' ¶
85                         {Objects¥68K} ¶
86                         {Libs¥68K}
87         END
88
89 PuTTY ÄÄ {¥MondoBuild¥} mac_res.r macresid.h
90         Rez mac_res.r -o {Targ} {Includes} -append
91
92 PuTTY.ppc ÄÄ {¥MondoBuild¥} mac_res.r macresid.h
93         Rez mac_res.r -o {Targ} {Includes} -append
94
95 PuTTY.fat Ä PuTTY PuTTY.ppc
96         Duplicate -y PuTTY PuTTY.fat
97         MergeFragment PuTTY.ppc PuTTY.fat
98
99 .c.o Ä .c
100         {C} {default}.c -o {Targ} {COptions}
101
102 # The odd stuff here seems to stop afpd getting confused.
103 .c.x Ä .c
104         echo -n > {Targ}
105         setfile -t XCOF {Targ}
106         {PPCC} {default}.c -o {Targ} {PPCCOptions}
107
108 mac.c.o         mac.c.x         Ä putty.h mac.h macresid.h
109 maccfg.c.o      maccfg.c.x      Ä putty.h mac.h macresid.h
110 macterm.c.o     macterm.c.x     Ä putty.h mac.h
111 misc.c.o        misc.c.x        Ä putty.h
112 ssh.c.o         ssh.c.x         Ä putty.h ssh.h
113 sshcrc.c.o      sshcrc.c.x      Ä
114 sshdes.c.o      sshdes.c.x      Ä ssh.h 
115 sshmd5.c.o      sshmd5.c.x      Ä ssh.h
116 sshrand.c.o     sshrand.c.x     Ä ssh.h
117 sshrsa.c.o      sshrsa.c.x      Ä ssh.h
118 sshsha.c.o      sshsha.c.x      Ä ssh.h
119 telnet.c.o      telnet.c.x      Ä putty.h
120 terminal.c.o    terminal.c.x    Ä putty.h
121 testback.c.o    testback.c.x    Ä putty.h