3d541627 |
1 | # Visual C++ Makefile for PuTTY. |
2 | # |
3 | # Use `nmake' to build. |
4 | # |
5 | |
6 | ##-- help |
7 | # |
8 | # Extra options you can set: |
9 | # |
10 | # - FWHACK=/DFWHACK |
11 | # Enables a hack that tunnels through some firewall proxies. |
12 | # |
13 | # - VER=/DSNAPSHOT=1999-01-25 |
14 | # Generates executables whose About box report them as being a |
15 | # development snapshot. |
16 | # |
17 | # - VER=/DRELEASE=0.43 |
18 | # Generates executables whose About box report them as being a |
19 | # release version. |
20 | # |
4d331a77 |
21 | # - COMPAT=/DAUTO_WINSOCK |
22 | # Causes PuTTY to assume that <windows.h> includes its own WinSock |
23 | # header file, so that it won't try to include <winsock.h>. |
24 | # |
25 | # - COMPAT=/DWINSOCK_TWO |
26 | # Causes the PuTTY utilities to include <winsock2.h> instead of |
27 | # <winsock.h>, except Plink which _needs_ WinSock 2 so it already |
28 | # does this. |
29 | # |
bd0c3145 |
30 | # - COMPAT=/DNO_SECURITY |
31 | # Disables Pageant's use of <aclapi.h>, which is not available |
32 | # with some development environments. This means that Pageant |
33 | # won't care about the local user ID of processes accessing it; a |
34 | # version of Pageant built with this option will therefore refuse |
35 | # to run under NT-series OSes on security grounds (although it |
36 | # will run fine on Win95-series OSes where there is no access |
37 | # control anyway). |
38 | # |
2871113a |
39 | # Note that this definition is always enabled in the Cygwin |
40 | # build, since at the time of writing this <aclapi.h> is known |
41 | # not to be available in Cygwin. |
42 | # |
6ed3635b |
43 | # - RCFL=/DASCIICTLS |
760858ff |
44 | # Uses ASCII rather than Unicode to specify the tab control in |
45 | # the resource file. Probably most useful when compiling with |
46 | # Cygnus/mingw32, whose resource compiler may have less of a |
47 | # problem with it. |
48 | # |
d9027fbd |
49 | # - XFLAGS=/DDEBUG |
50 | # Causes PuTTY to enable internal debugging. |
51 | # |
b191636d |
52 | # - XFLAGS=/DMALLOC_LOG |
53 | # Causes PuTTY to emit a file called putty_mem.log, logging every |
54 | # memory allocation and free, so you can track memory leaks. |
55 | # |
56 | # - XFLAGS=/DMINEFIELD |
57 | # Causes PuTTY to use a custom memory allocator, similar in |
58 | # concept to Electric Fence, in place of regular malloc(). Wastes |
59 | # huge amounts of RAM, but should cause heap-corruption bugs to |
60 | # show up as GPFs at the point of failure rather than appearing |
61 | # later on as second-level damage. |
62 | # |
3d541627 |
63 | ##-- |
676c0556 |
64 | |
d9027fbd |
65 | # Enable debug and incremental linking and compiling |
dea851d6 |
66 | # CFLAGS = /nologo /W3 /YX /Yd /O1 /Gi /D_WINDOWS /DDEBUG /D_WIN32_WINDOWS=0x401 |
cdd6c586 |
67 | # LFLAGS = /debug |
373e94e9 |
68 | |
d9027fbd |
69 | # Disable debug and incremental linking and compiling |
01c034ad |
70 | CFLAGS = /nologo /W3 /O1 /D_WINDOWS /D_WIN32_WINDOWS=0x401 |
cdd6c586 |
71 | LFLAGS = /incremental:no /fixed |
373e94e9 |
72 | |
d9027fbd |
73 | # Use MSVC DLL |
dea851d6 |
74 | # CFLAGS = /nologo /W3 /O1 /MD /D_WINDOWS /D_WIN32_WINDOWS=0x401 |
d9027fbd |
75 | # LFLAGS = /incremental:no |
374330e2 |
76 | |
77 | .c.obj: |
b191636d |
78 | cl $(COMPAT) $(FWHACK) $(XFLAGS) $(CFLAGS) /c $*.c |
374330e2 |
79 | |
3d541627 |
80 | OBJ=obj |
81 | RES=res |
82 | |
89ee5268 |
83 | ##-- objects putty puttytel |
8c3cd914 |
84 | GOBJS1 = window.$(OBJ) windlg.$(OBJ) winctrls.$(OBJ) terminal.$(OBJ) |
4eeb7d09 |
85 | GOBJS2 = sizetip.$(OBJ) wcwidth.$(OBJ) unicode.$(OBJ) |
4017be6d |
86 | ##-- objects putty puttytel plink |
c91409da |
87 | LOBJS1 = telnet.$(OBJ) raw.$(OBJ) rlogin.$(OBJ) ldisc.$(OBJ) winnet.$(OBJ) |
4017be6d |
88 | ##-- objects putty plink |
5c58ad2d |
89 | POBJS = be_all.$(OBJ) |
89ee5268 |
90 | ##-- objects puttytel |
91 | TOBJS = be_nossh.$(OBJ) |
4017be6d |
92 | ##-- objects plink |
a9422f39 |
93 | PLOBJS = plink.$(OBJ) |
3d541627 |
94 | ##-- objects pscp |
4eb24e3a |
95 | SOBJS = scp.$(OBJ) winnet.$(OBJ) be_none.$(OBJ) wildcard.$(OBJ) |
4a8fc3c4 |
96 | ##-- objects psftp |
fd5e5847 |
97 | FOBJS = psftp.$(OBJ) winnet.$(OBJ) be_none.$(OBJ) |
98 | ##-- objects pscp psftp |
99 | SFOBJS = sftp.$(OBJ) int64.$(OBJ) |
4a8fc3c4 |
100 | ##-- objects putty puttytel pscp psftp plink |
a9422f39 |
101 | MOBJS = misc.$(OBJ) version.$(OBJ) winstore.$(OBJ) settings.$(OBJ) |
8df7a775 |
102 | MOBJ2 = tree234.$(OBJ) |
4a8fc3c4 |
103 | ##-- objects putty pscp psftp plink |
89ee5268 |
104 | OBJS1 = sshcrc.$(OBJ) sshdes.$(OBJ) sshmd5.$(OBJ) sshrsa.$(OBJ) sshrand.$(OBJ) |
e5574168 |
105 | OBJS2 = sshsha.$(OBJ) sshblowf.$(OBJ) noise.$(OBJ) sshdh.$(OBJ) sshdss.$(OBJ) |
4ba9b64b |
106 | OBJS3 = sshbn.$(OBJ) sshpubk.$(OBJ) ssh.$(OBJ) pageantc.$(OBJ) sshzlib.$(OBJ) |
5c72ca61 |
107 | OBJS4 = x11fwd.$(OBJ) portfwd.$(OBJ) sshaes.$(OBJ) sshsh512.$(OBJ) |
5c58ad2d |
108 | ##-- objects pageant |
109 | PAGE1 = pageant.$(OBJ) sshrsa.$(OBJ) sshpubk.$(OBJ) sshdes.$(OBJ) sshbn.$(OBJ) |
8479e33c |
110 | PAGE2 = sshmd5.$(OBJ) version.$(OBJ) tree234.$(OBJ) misc.$(OBJ) sshaes.$(OBJ) |
5c72ca61 |
111 | PAGE3 = sshsha.$(OBJ) pageantc.$(OBJ) sshdss.$(OBJ) sshsh512.$(OBJ) |
6e522441 |
112 | ##-- objects puttygen |
5c72ca61 |
113 | GEN1 = puttygen.$(OBJ) sshrsag.$(OBJ) sshdssg.$(OBJ) sshprime.$(OBJ) |
114 | GEN2 = sshdes.$(OBJ) sshbn.$(OBJ) sshmd5.$(OBJ) version.$(OBJ) sshrand.$(OBJ) |
115 | GEN3 = noise.$(OBJ) sshsha.$(OBJ) winstore.$(OBJ) misc.$(OBJ) winctrls.$(OBJ) |
116 | GEN4 = sshrsa.$(OBJ) sshdss.$(OBJ) sshpubk.$(OBJ) sshaes.$(OBJ) sshsh512.$(OBJ) |
9d01fc92 |
117 | ##-- resources putty puttytel |
3d541627 |
118 | PRESRC = win_res.$(RES) |
5c58ad2d |
119 | ##-- resources pageant |
120 | PAGERC = pageant.$(RES) |
6e522441 |
121 | ##-- resources puttygen |
122 | GENRC = puttygen.$(RES) |
4a8fc3c4 |
123 | ##-- resources pscp psftp |
3d541627 |
124 | SRESRC = scp.$(RES) |
4017be6d |
125 | ##-- resources plink |
126 | LRESRC = plink.$(RES) |
3d541627 |
127 | ##-- |
128 | |
129 | ##-- gui-apps |
130 | # putty |
89ee5268 |
131 | # puttytel |
5c58ad2d |
132 | # pageant |
6e522441 |
133 | # puttygen |
3d541627 |
134 | ##-- console-apps |
135 | # pscp |
4a8fc3c4 |
136 | # psftp |
6d2d5e8d |
137 | # plink ws2_32 |
3d541627 |
138 | ##-- |
139 | |
374330e2 |
140 | LIBS1 = advapi32.lib user32.lib gdi32.lib |
4017be6d |
141 | LIBS2 = comctl32.lib comdlg32.lib |
88485e4d |
142 | LIBS3 = shell32.lib winmm.lib imm32.lib |
4017be6d |
143 | SOCK1 = wsock32.lib |
144 | SOCK2 = ws2_32.lib |
4585985c |
145 | |
79fc73e2 |
146 | all: putty.exe puttytel.exe pscp.exe psftp.exe \ |
147 | plink.exe pageant.exe puttygen.exe |
89ee5268 |
148 | |
9c964e85 |
149 | putty.exe: $(GOBJS1) $(GOBJS2) $(LOBJS1) $(POBJS) $(MOBJS) $(MOBJ2) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(PRESRC) putty.rsp |
4491fef5 |
150 | link $(LFLAGS) -out:putty.exe -map:putty.map @putty.rsp |
89ee5268 |
151 | |
8df7a775 |
152 | puttytel.exe: $(GOBJS1) $(GOBJS2) $(LOBJS1) $(TOBJS) $(MOBJS) $(MOBJ2) $(PRESRC) puttytel.rsp |
4491fef5 |
153 | link $(LFLAGS) -out:puttytel.exe -map:puttytel.map @puttytel.rsp |
89ee5268 |
154 | |
afc47154 |
155 | pageant.exe: $(PAGE1) $(PAGE2) $(PAGE3) $(PAGERC) pageant.rsp |
4491fef5 |
156 | link $(LFLAGS) -out:pageant.exe -map:pageant.map @pageant.rsp |
5c58ad2d |
157 | |
6e522441 |
158 | puttygen.exe: $(GEN1) $(GEN2) $(GEN3) $(GEN4) $(GENRC) puttygen.rsp |
4491fef5 |
159 | link $(LFLAGS) -out:puttygen.exe -map:puttygen.map @puttygen.rsp |
6e522441 |
160 | |
fd5e5847 |
161 | pscp.exe: $(SOBJS) $(SFOBJS) $(MOBJS) $(MOBJ2) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(SRESRC) pscp.rsp |
4491fef5 |
162 | link $(LFLAGS) -out:pscp.exe -map:pscp.map @pscp.rsp |
89ee5268 |
163 | |
fd5e5847 |
164 | psftp.exe: $(FOBJS) $(SFOBJS) $(MOBJS) $(MOBJ2) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(SRESRC) psftp.rsp |
79fc73e2 |
165 | link $(LFLAGS) -out:psftp.exe -map:psftp.map @psftp.rsp |
166 | |
9c964e85 |
167 | plink.exe: $(LOBJS1) $(POBJS) $(PLOBJS) $(MOBJS) $(MOBJ2) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(LRESRC) plink.rsp |
4491fef5 |
168 | link $(LFLAGS) -out:plink.exe -map:plink.map @plink.rsp |
4017be6d |
169 | |
d9027fbd |
170 | ssh.obj: |
171 | cl $(FWHACK) $(VER) $(CFLAGS) /Gi- /c ssh.c |
172 | |
89ee5268 |
173 | putty.rsp: makefile |
174 | echo /nologo /subsystem:windows > putty.rsp |
175 | echo $(GOBJS1) >> putty.rsp |
176 | echo $(GOBJS2) >> putty.rsp |
4017be6d |
177 | echo $(LOBJS1) >> putty.rsp |
89ee5268 |
178 | echo $(POBJS) >> putty.rsp |
179 | echo $(MOBJS) >> putty.rsp |
8df7a775 |
180 | echo $(MOBJ2) >> putty.rsp |
89ee5268 |
181 | echo $(OBJS1) >> putty.rsp |
182 | echo $(OBJS2) >> putty.rsp |
e5574168 |
183 | echo $(OBJS3) >> putty.rsp |
9c964e85 |
184 | echo $(OBJS4) >> putty.rsp |
89ee5268 |
185 | echo $(PRESRC) >> putty.rsp |
186 | echo $(LIBS1) >> putty.rsp |
187 | echo $(LIBS2) >> putty.rsp |
defab6b8 |
188 | echo $(LIBS3) >> putty.rsp |
4017be6d |
189 | echo $(SOCK1) >> putty.rsp |
89ee5268 |
190 | |
191 | puttytel.rsp: makefile |
192 | echo /nologo /subsystem:windows > puttytel.rsp |
193 | echo $(GOBJS1) >> puttytel.rsp |
194 | echo $(GOBJS2) >> puttytel.rsp |
4017be6d |
195 | echo $(LOBJS1) >> puttytel.rsp |
89ee5268 |
196 | echo $(TOBJS) >> puttytel.rsp |
197 | echo $(MOBJS) >> puttytel.rsp |
8df7a775 |
198 | echo $(MOBJ2) >> puttytel.rsp |
9d01fc92 |
199 | echo $(PRESRC) >> puttytel.rsp |
89ee5268 |
200 | echo $(LIBS1) >> puttytel.rsp |
201 | echo $(LIBS2) >> puttytel.rsp |
defab6b8 |
202 | echo $(LIBS3) >> puttytel.rsp |
4017be6d |
203 | echo $(SOCK1) >> puttytel.rsp |
89ee5268 |
204 | |
5c58ad2d |
205 | pageant.rsp: makefile |
206 | echo /nologo /subsystem:windows > pageant.rsp |
6e522441 |
207 | echo $(PAGE1) >> pageant.rsp |
208 | echo $(PAGE2) >> pageant.rsp |
afc47154 |
209 | echo $(PAGE3) >> pageant.rsp |
6e522441 |
210 | echo $(PAGERC) >> pageant.rsp |
5c58ad2d |
211 | echo $(LIBS1) >> pageant.rsp |
212 | echo $(LIBS2) >> pageant.rsp |
213 | echo $(LIBS3) >> pageant.rsp |
214 | |
6e522441 |
215 | puttygen.rsp: makefile |
216 | echo /nologo /subsystem:windows > puttygen.rsp |
217 | echo $(GEN1) >> puttygen.rsp |
218 | echo $(GEN2) >> puttygen.rsp |
219 | echo $(GEN3) >> puttygen.rsp |
220 | echo $(GEN4) >> puttygen.rsp |
221 | echo $(GENRC) >> puttygen.rsp |
222 | echo $(LIBS1) >> puttygen.rsp |
223 | echo $(LIBS2) >> puttygen.rsp |
224 | echo $(LIBS3) >> puttygen.rsp |
225 | |
89ee5268 |
226 | pscp.rsp: makefile |
227 | echo /nologo /subsystem:console > pscp.rsp |
228 | echo $(SOBJS) >> pscp.rsp |
fd5e5847 |
229 | echo $(SFOBJS) >> pscp.rsp |
89ee5268 |
230 | echo $(MOBJS) >> pscp.rsp |
8df7a775 |
231 | echo $(MOBJ2) >> pscp.rsp |
89ee5268 |
232 | echo $(OBJS1) >> pscp.rsp |
233 | echo $(OBJS2) >> pscp.rsp |
e5574168 |
234 | echo $(OBJS3) >> pscp.rsp |
9c964e85 |
235 | echo $(OBJS4) >> pscp.rsp |
89ee5268 |
236 | echo $(SRESRC) >> pscp.rsp |
237 | echo $(LIBS1) >> pscp.rsp |
238 | echo $(LIBS2) >> pscp.rsp |
4017be6d |
239 | echo $(SOCK1) >> pscp.rsp |
240 | |
79fc73e2 |
241 | psftp.rsp: makefile |
242 | echo /nologo /subsystem:console > psftp.rsp |
243 | echo $(FOBJS) >> psftp.rsp |
fd5e5847 |
244 | echo $(SFOBJS) >> psftp.rsp |
79fc73e2 |
245 | echo $(MOBJS) >> psftp.rsp |
246 | echo $(MOBJ2) >> psftp.rsp |
247 | echo $(OBJS1) >> psftp.rsp |
248 | echo $(OBJS2) >> psftp.rsp |
249 | echo $(OBJS3) >> psftp.rsp |
250 | echo $(OBJS4) >> psftp.rsp |
251 | echo $(SRESRC) >> psftp.rsp |
252 | echo $(LIBS1) >> psftp.rsp |
253 | echo $(LIBS2) >> psftp.rsp |
254 | echo $(SOCK1) >> psftp.rsp |
255 | |
4017be6d |
256 | plink.rsp: makefile |
257 | echo /nologo /subsystem:console > plink.rsp |
258 | echo $(LOBJS1) >> plink.rsp |
259 | echo $(POBJS) >> plink.rsp |
260 | echo $(PLOBJS) >> plink.rsp |
261 | echo $(MOBJS) >> plink.rsp |
8df7a775 |
262 | echo $(MOBJ2) >> plink.rsp |
4017be6d |
263 | echo $(OBJS1) >> plink.rsp |
264 | echo $(OBJS2) >> plink.rsp |
265 | echo $(OBJS3) >> plink.rsp |
9c964e85 |
266 | echo $(OBJS4) >> plink.rsp |
4017be6d |
267 | echo $(LRESRC) >> plink.rsp |
268 | echo $(LIBS1) >> plink.rsp |
269 | echo $(LIBS2) >> plink.rsp |
270 | echo $(SOCK2) >> plink.rsp |
3d541627 |
271 | |
272 | ##-- dependencies |
2871113a |
273 | be_all.$(OBJ): be_all.c network.h misc.h puttymem.h putty.h |
274 | be_none.$(OBJ): be_none.c network.h misc.h puttymem.h putty.h |
275 | be_nossh.$(OBJ): be_nossh.c network.h misc.h puttymem.h putty.h |
5c72ca61 |
276 | ber.$(OBJ): ber.c network.h asn.h misc.h asnerror.h int64.h puttymem.h ssh.h putty.h |
2871113a |
277 | cert.$(OBJ): cert.c asn.h asnerror.h misc.h puttymem.h cert.h crypto.h |
5c72ca61 |
278 | debug.$(OBJ): debug.c debug.h |
2871113a |
279 | int64.$(OBJ): int64.c int64.h |
280 | ldisc.$(OBJ): ldisc.c network.h misc.h puttymem.h putty.h |
281 | misc.$(OBJ): misc.c network.h misc.h puttymem.h putty.h |
5c72ca61 |
282 | mscrypto.$(OBJ): mscrypto.c network.h int64.h puttymem.h ssh.h |
2871113a |
283 | no_ssl.$(OBJ): no_ssl.c network.h misc.h puttymem.h putty.h |
5c72ca61 |
284 | noise.$(OBJ): noise.c network.h misc.h puttymem.h storage.h int64.h ssh.h putty.h |
285 | pageant.$(OBJ): pageant.c network.h int64.h puttymem.h ssh.h tree234.h |
8a23a541 |
286 | pageantc.$(OBJ): pageantc.c puttymem.h |
2871113a |
287 | plink.$(OBJ): plink.c network.h misc.h puttymem.h storage.h putty.h tree234.h |
5c72ca61 |
288 | portfwd.$(OBJ): portfwd.c network.h misc.h int64.h puttymem.h ssh.h putty.h |
2871113a |
289 | psftp.$(OBJ): psftp.c network.h misc.h sftp.h ssh.h storage.h int64.h puttymem.h putty.h |
5c72ca61 |
290 | puttygen.$(OBJ): puttygen.c network.h misc.h int64.h puttymem.h winstuff.h ssh.h putty.h |
2871113a |
291 | raw.$(OBJ): raw.c network.h misc.h puttymem.h putty.h |
292 | rlogin.$(OBJ): rlogin.c network.h misc.h puttymem.h putty.h |
293 | scp.$(OBJ): scp.c network.h misc.h sftp.h ssh.h storage.h puttymem.h int64.h putty.h winstuff.h |
294 | settings.$(OBJ): settings.c network.h misc.h puttymem.h storage.h putty.h |
8a23a541 |
295 | sftp.$(OBJ): sftp.c sftp.h int64.h |
2871113a |
296 | sizetip.$(OBJ): sizetip.c network.h misc.h puttymem.h winstuff.h putty.h |
5c72ca61 |
297 | ssh.$(OBJ): ssh.c network.h misc.h int64.h puttymem.h ssh.h putty.h tree234.h |
298 | sshaes.$(OBJ): sshaes.c network.h int64.h puttymem.h ssh.h |
299 | sshblowf.$(OBJ): sshblowf.c network.h int64.h puttymem.h ssh.h |
300 | sshbn.$(OBJ): sshbn.c network.h misc.h int64.h puttymem.h ssh.h putty.h |
8a23a541 |
301 | sshcrc.$(OBJ): sshcrc.c |
5c72ca61 |
302 | sshdes.$(OBJ): sshdes.c network.h int64.h puttymem.h ssh.h |
303 | sshdh.$(OBJ): sshdh.c network.h int64.h puttymem.h ssh.h |
304 | sshdss.$(OBJ): sshdss.c network.h misc.h int64.h puttymem.h ssh.h |
305 | sshdssg.$(OBJ): sshdssg.c network.h misc.h int64.h puttymem.h ssh.h |
306 | sshmd5.$(OBJ): sshmd5.c network.h int64.h puttymem.h ssh.h |
307 | sshprime.$(OBJ): sshprime.c network.h int64.h puttymem.h ssh.h |
308 | sshpubk.$(OBJ): sshpubk.c network.h int64.h puttymem.h ssh.h |
309 | sshrand.$(OBJ): sshrand.c network.h int64.h puttymem.h ssh.h |
310 | sshrsa.$(OBJ): sshrsa.c network.h int64.h puttymem.h ssh.h |
311 | sshrsag.$(OBJ): sshrsag.c network.h int64.h puttymem.h ssh.h |
312 | sshsh512.$(OBJ): sshsh512.c network.h int64.h puttymem.h ssh.h |
313 | sshsha.$(OBJ): sshsha.c network.h int64.h puttymem.h ssh.h |
314 | sshzlib.$(OBJ): sshzlib.c network.h int64.h puttymem.h ssh.h |
2871113a |
315 | ssl.$(OBJ): ssl.c network.h asnerror.h misc.h cert.h crypto.h ssl.h int64.h puttymem.h |
316 | telnet.$(OBJ): telnet.c network.h misc.h puttymem.h putty.h |
317 | terminal.$(OBJ): terminal.c network.h misc.h puttymem.h putty.h tree234.h |
5c72ca61 |
318 | test.$(OBJ): test.c network.h int64.h puttymem.h ssh.h |
8a23a541 |
319 | tree234.$(OBJ): tree234.c tree234.h |
2871113a |
320 | unicode.$(OBJ): unicode.c network.h misc.h puttymem.h putty.h |
8a23a541 |
321 | version.$(OBJ): version.c |
2871113a |
322 | wcwidth.$(OBJ): wcwidth.c |
323 | wildcard.$(OBJ): wildcard.c |
324 | winctrls.$(OBJ): winctrls.c network.h misc.h puttymem.h putty.h winstuff.h |
5c72ca61 |
325 | windlg.$(OBJ): windlg.c network.h misc.h ssh.h storage.h puttymem.h int64.h putty.h winstuff.h win_res.h |
2871113a |
326 | window.$(OBJ): window.c network.h misc.h puttymem.h storage.h winstuff.h putty.h win_res.h |
327 | winnet.$(OBJ): winnet.c network.h misc.h puttymem.h putty.h tree234.h |
328 | winstore.$(OBJ): winstore.c network.h misc.h puttymem.h storage.h putty.h |
5c72ca61 |
329 | x11fwd.$(OBJ): x11fwd.c network.h misc.h int64.h puttymem.h ssh.h putty.h |
3d541627 |
330 | ##-- |
067a15ea |
331 | |
332 | # Hack to force version.obj to be rebuilt always |
d9027fbd |
333 | version.obj: *.c *.h *.rc |
067a15ea |
334 | cl $(FWHACK) $(VER) $(CFLAGS) /c version.c |
374330e2 |
335 | |
3d541627 |
336 | ##-- dependencies |
337 | win_res.$(RES): win_res.rc win_res.h putty.ico |
338 | ##-- |
339 | win_res.$(RES): |
6ed3635b |
340 | rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 win_res.rc |
374330e2 |
341 | |
3d541627 |
342 | ##-- dependencies |
343 | scp.$(RES): scp.rc scp.ico |
344 | ##-- |
345 | scp.$(RES): |
6ed3635b |
346 | rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 scp.rc |
4585985c |
347 | |
5c58ad2d |
348 | ##-- dependencies |
349 | pageant.$(RES): pageant.rc pageant.ico pageants.ico |
350 | ##-- |
351 | pageant.$(RES): |
352 | rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 pageant.rc |
353 | |
6e522441 |
354 | ##-- dependencies |
355 | puttygen.$(RES): puttygen.rc puttygen.ico |
356 | ##-- |
357 | puttygen.$(RES): |
358 | rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 puttygen.rc |
359 | |
1a5adedf |
360 | clean: tidy |
d9027fbd |
361 | -del *.exe |
1a5adedf |
362 | |
363 | tidy: |
d9027fbd |
364 | -del *.obj |
365 | -del *.res |
366 | -del *.pch |
367 | -del *.aps |
368 | -del *.ilk |
369 | -del *.pdb |
370 | -del *.rsp |
371 | -del *.dsp |
372 | -del *.dsw |
373 | -del *.ncb |
374 | -del *.opt |
375 | -del *.plg |
376 | -del *.map |
377 | -del *.idb |
378 | -del debug.log |