]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - Makefile.mpw
Makefile fixes.
[PuTTY.git] / Makefile.mpw
1 # $Id: Makefile.mpw,v 1.1.2.6 1999/03/28 17:34:36 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 # pseudo-targets
66 all Ä 68k ppc fat
67 clean Ä
68         delete -i {Objects¥68K} {Objects¥PPC} ¶
69                 PuTTY PuTTY.fat PuTTY.ppc PuTTY.NJ
70
71 PuTTY.ppc ÄÄ {¥MondoBuild¥} {Objects¥PPC}
72         PPCLink ¶
73                 -o {Targ} {Sym¥PPC} ¶
74                 -t 'APPL' ¶
75                 -c 'pTTY' ¶
76                 {Objects¥PPC} ¶
77                 {Libs¥PPC}
78
79
80 PuTTY ÄÄ {Objects¥68K} {Libs¥68K}
81         IF (`exists {Targ}.NJ`)
82                 ILink ¶
83                         -o {Targ} {Sym¥68K} ¶
84                         -t 'APPL' ¶
85                         -c 'pTTY' ¶
86                         -newerdeps {NewerDeps}
87         ELSE
88                 ILink ¶
89                         -o {Targ} {Sym¥68K} ¶
90                         -t 'APPL' ¶
91                         -c 'pTTY' ¶
92                         {Objects¥68K} ¶
93                         {Libs¥68K}
94         END
95
96 PuTTY ÄÄ {¥MondoBuild¥} mac_res.r macresid.h
97         Rez mac_res.r -o {Targ} {Includes} -append
98
99 PuTTY.ppc ÄÄ {¥MondoBuild¥} mac_res.r macresid.h
100         Rez mac_res.r -o {Targ} {Includes} -append
101
102 PuTTY.fat Ä PuTTY PuTTY.ppc
103         Duplicate -y PuTTY PuTTY.fat
104         MergeFragment PuTTY.ppc PuTTY.fat
105
106 .c.o Ä .c
107         {C} {default}.c -o {Targ} {COptions}
108
109 # The odd stuff here seems to stop afpd getting confused.
110 .c.x Ä .c
111         echo -n > {Targ}
112         setfile -t XCOF {Targ}
113         {PPCC} {default}.c -o {Targ} {PPCCOptions}
114
115 mac.c.o         mac.c.x         Ä putty.h mac.h macresid.h
116 maccfg.c.o      maccfg.c.x      Ä putty.h mac.h macresid.h
117 macterm.c.o     macterm.c.x     Ä putty.h mac.h
118 misc.c.o        misc.c.x        Ä putty.h
119 ssh.c.o         ssh.c.x         Ä putty.h ssh.h
120 sshcrc.c.o      sshcrc.c.x      Ä
121 sshdes.c.o      sshdes.c.x      Ä ssh.h 
122 sshmd5.c.o      sshmd5.c.x      Ä ssh.h
123 sshrand.c.o     sshrand.c.x     Ä ssh.h
124 sshrsa.c.o      sshrsa.c.x      Ä ssh.h
125 sshsha.c.o      sshsha.c.x      Ä ssh.h
126 telnet.c.o      telnet.c.x      Ä putty.h
127 terminal.c.o    terminal.c.x    Ä putty.h
128 testback.c.o    testback.c.x    Ä putty.h