OSDN Git Service

Update PuTTY to 0.62.
[ffftp/ffftp.git] / putty / RECIPE
1 # -*- makefile -*-\r
2\r
3 # This file describes which PuTTY programs are made up from which\r
4 # object and resource files. It is processed into the various\r
5 # Makefiles by means of a Perl script. Makefile changes should\r
6 # really be made by editing this file and/or the Perl script, not\r
7 # by editing the actual Makefiles.\r
8 \r
9 # ------------------------------------------------------------\r
10 # Top-level configuration.\r
11 \r
12 # Overall project name.\r
13 !name putty\r
14 # Locations and types of output Makefiles.\r
15 !makefile vc windows/Makefile.vc\r
16 !makefile vcproj windows/MSVC\r
17 !makefile cygwin windows/Makefile.cyg\r
18 !makefile borland windows/Makefile.bor\r
19 !makefile lcc windows/Makefile.lcc\r
20 !makefile gtk unix/Makefile.gtk\r
21 !makefile unix unix/Makefile.ux\r
22 !makefile ac unix/Makefile.in\r
23 !makefile osx macosx/Makefile\r
24 !makefile devcppproj windows/DEVCPP\r
25 # Source directories.\r
26 !srcdir charset/\r
27 !srcdir windows/\r
28 !srcdir unix/\r
29 !srcdir macosx/\r
30 \r
31 # Help text added to the top of each Makefile, with /D converted\r
32 # into -D as appropriate for the particular Makefile.\r
33 \r
34 !begin help\r
35 #\r
36 # Extra options you can set:\r
37 #\r
38 #  - VER="/DSNAPSHOT=1999-01-25 /DSVN_REV=1234"\r
39 #      Generates executables whose About box report them as being a\r
40 #      development snapshot. SVN_REV is a Subversion revision number.\r
41 #\r
42 #  - VER=/DRELEASE=0.43\r
43 #      Generates executables whose About box report them as being a\r
44 #      release version.\r
45 #\r
46 #  - COMPAT=/DAUTO_WINSOCK (Windows only)\r
47 #      Causes PuTTY to assume that <windows.h> includes its own WinSock\r
48 #      header file, so that it won't try to include <winsock.h>.\r
49 #\r
50 #  - COMPAT=/DWINSOCK_TWO (Windows only)\r
51 #      Causes the PuTTY utilities to include <winsock2.h> instead of\r
52 #      <winsock.h>, except Plink which _needs_ WinSock 2 so it already\r
53 #      does this.\r
54 #\r
55 #  - COMPAT=/DNO_SECURITY (Windows only)\r
56 #      Disables Pageant's use of <aclapi.h>, which is not available\r
57 #      with some development environments (such as older versions of\r
58 #      the Cygwin/mingw GNU toolchain). This means that Pageant\r
59 #      won't care about the local user ID of processes accessing it; a\r
60 #      version of Pageant built with this option will therefore refuse\r
61 #      to run under NT-series OSes on security grounds (although it\r
62 #      will run fine on Win95-series OSes where there is no access\r
63 #      control anyway).\r
64 #\r
65 #  - COMPAT=/DNO_MULTIMON (Windows only)\r
66 #      Disables PuTTY's use of <multimon.h>, which is not available\r
67 #      with some development environments. This means that PuTTY's\r
68 #      full-screen mode (configurable to work on Alt-Enter) will\r
69 #      not behave usefully in a multi-monitor environment.\r
70 #\r
71 #      Note that this definition is always enabled in the Cygwin\r
72 #      build, since at the time of writing this <multimon.h> is\r
73 #      known not to be available in Cygwin.\r
74 #\r
75 #  - COMPAT=/DNO_HTMLHELP (Windows only)\r
76 #      Disables PuTTY's use of <htmlhelp.h>, which is not available\r
77 #      with some development environments. The resulting binary\r
78 #      will only look for an old-style WinHelp file (.HLP/.CNT), and\r
79 #      will ignore any .CHM file.\r
80 #\r
81 #      Note that this definition is always enabled in the Cygwin\r
82 #      build, since at the time of writing this <htmlhelp.h> is\r
83 #      known not to be available in Cygwin (although you can use\r
84 #      the htmlhelp.h supplied with HTML Help Workshop).\r
85 #\r
86 #  - RCFL=/DNO_MANIFESTS (Windows only)\r
87 #      Disables inclusion of XML application manifests in the PuTTY\r
88 #      binaries. This may be necessary to build for 64-bit Windows;\r
89 #      the manifests are only included to use the XP GUI style on\r
90 #      Windows XP, and the architecture tags are a lie on 64-bit.\r
91 #\r
92 #  - COMPAT=/DNO_IPV6\r
93 #      Disables PuTTY's ability to make IPv6 connections, enabling\r
94 #      it to compile under development environments which do not\r
95 #      support IPv6 in their header files.\r
96 #\r
97 #  - COMPAT=/DNO_GSSAPI\r
98 #      Disables PuTTY's ability to use GSSAPI functions for\r
99 #      authentication and key exchange.\r
100 #\r
101 #  - COMPAT=/DSTATIC_GSSAPI\r
102 #      Causes PuTTY to try to link statically against the GSSAPI\r
103 #      library instead of the default of doing it at run time.\r
104 #\r
105 #  - COMPAT=/DMSVC4 (Windows only)\r
106 #  - RCFL=/DMSVC4\r
107 #      Makes a couple of minor changes so that PuTTY compiles using\r
108 #      MSVC 4. You will also need /DNO_SECURITY and /DNO_MULTIMON.\r
109 #\r
110 #  - RCFL=/DASCIICTLS (Windows only)\r
111 #      Uses ASCII rather than Unicode to specify the tab control in\r
112 #      the resource file. Probably most useful when compiling with\r
113 #      Cygnus/mingw32, whose resource compiler may have less of a\r
114 #      problem with it.\r
115 #\r
116 #  - XFLAGS=/DTELNET_DEFAULT\r
117 #      Causes PuTTY to default to the Telnet protocol (in the absence\r
118 #      of Default Settings and so on to the contrary). Normally PuTTY\r
119 #      will default to SSH.\r
120 #\r
121 #  - XFLAGS=/DDEBUG\r
122 #      Causes PuTTY to enable internal debugging.\r
123 #\r
124 #  - XFLAGS=/DMALLOC_LOG\r
125 #      Causes PuTTY to emit a file called putty_mem.log, logging every\r
126 #      memory allocation and free, so you can track memory leaks.\r
127 #\r
128 #  - XFLAGS=/DMINEFIELD (Windows only)\r
129 #      Causes PuTTY to use a custom memory allocator, similar in\r
130 #      concept to Electric Fence, in place of regular malloc(). Wastes\r
131 #      huge amounts of RAM, but should cause heap-corruption bugs to\r
132 #      show up as GPFs at the point of failure rather than appearing\r
133 #      later on as second-level damage.\r
134 #\r
135 !end\r
136 \r
137 # ------------------------------------------------------------\r
138 # Additional text added verbatim to each individual Makefile.\r
139 \r
140 # Hack to force version.o to be rebuilt always.\r
141 !begin vc\r
142 version.obj: *.c *.h *.rc\r
143         cl $(VER) $(CFLAGS) /c ..\version.c\r
144 !end\r
145 !specialobj vc version\r
146 !begin cygwin\r
147 version.o: FORCE\r
148         $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c\r
149 !end\r
150 !specialobj cygwin version\r
151 !begin borland\r
152 version.obj: FORCE\r
153         bcc32 $(VER) $(CFLAGS) /c ..\version.c\r
154 !end\r
155 !specialobj borland version\r
156 !begin lcc\r
157 version.obj: FORCE\r
158         lcc $(VER) $(CFLAGS) /c ..\version.c\r
159 !end\r
160 !specialobj lcc version\r
161 # For Unix, we also need the gross MD5 hack that causes automatic\r
162 # version number selection in release source archives.\r
163 !begin gtk\r
164 version.o: FORCE\r
165         if test -z "$(VER)" && (cd ..; md5sum -c manifest); then \\r
166                 $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat ../version.def` -c ../version.c; \\r
167         else \\r
168                 $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c; \\r
169         fi\r
170 !end\r
171 !specialobj gtk version\r
172 \r
173 # Add VER to Windows resource targets, and force them to be rebuilt every\r
174 # time, on the assumption that they will contain version information.\r
175 !begin vc vars\r
176 CFLAGS = $(CFLAGS) /DHAS_GSSAPI /DSECURITY_WIN32\r
177 RCFLAGS = $(RCFLAGS) $(VER)\r
178 !end\r
179 !begin cygwin vars\r
180 # XXX GNU-ism, but it's probably all right for a Cygwin/MinGW Makefile.\r
181 RCFLAGS += $(patsubst -D%,--define %,$(VER))\r
182 !end\r
183 !begin borland vars\r
184 # Borland doesn't support +=. This probably shouldn't work, but seems to.\r
185 RCFLAGS = $(RCFLAGS) $(VER)\r
186 !end\r
187 !begin lcc vars\r
188 RCFLAGS += $(VER)\r
189 !end\r
190 !forceobj putty.res\r
191 !forceobj puttytel.res\r
192 !forceobj plink.res\r
193 !forceobj pscp.res\r
194 !forceobj psftp.res\r
195 !forceobj pageant.res\r
196 !forceobj puttygen.res\r
197 \r
198 # `make install' target for Unix.\r
199 !begin gtk\r
200 install:\r
201         mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)\r
202         $(INSTALL_PROGRAM) -m 755 plink $(DESTDIR)$(bindir)/plink\r
203         $(INSTALL_PROGRAM) -m 755 pscp $(DESTDIR)$(bindir)/pscp\r
204         $(INSTALL_PROGRAM) -m 755 psftp $(DESTDIR)$(bindir)/psftp\r
205         $(INSTALL_PROGRAM) -m 755 pterm $(DESTDIR)$(bindir)/pterm\r
206         if test -n "$(UTMP_GROUP)"; then \\r
207           chgrp $(UTMP_GROUP) $(DESTDIR)$(bindir)/pterm && \\r
208             chmod 2755 $(DESTDIR)$(bindir)/pterm; \\r
209         elif test -n "$(UTMP_USER)"; then \\r
210           chown $(UTMP_USER) $(DESTDIR)$(bindir)/pterm && \\r
211             chmod 4755 $(DESTDIR)$(bindir)/pterm; \\r
212         fi\r
213         $(INSTALL_PROGRAM) -m 755 putty $(DESTDIR)$(bindir)/putty\r
214         $(INSTALL_PROGRAM) -m 755 puttygen $(DESTDIR)$(bindir)/puttygen\r
215         $(INSTALL_PROGRAM) -m 755 puttytel $(DESTDIR)$(bindir)/puttytel\r
216         $(INSTALL_DATA) -m 644 ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1\r
217         $(INSTALL_DATA) -m 644 ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1\r
218         $(INSTALL_DATA) -m 644 ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1\r
219         $(INSTALL_DATA) -m 644 ../doc/pterm.1 $(DESTDIR)$(man1dir)/pterm.1\r
220         $(INSTALL_DATA) -m 644 ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1\r
221         $(INSTALL_DATA) -m 644 ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1\r
222         $(INSTALL_DATA) -m 644 ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1\r
223 \r
224 install-strip:\r
225         $(MAKE) install INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s"\r
226 !end\r
227 !begin osx vars\r
228 CFLAGS += -DMACOSX\r
229 !end\r
230 \r
231 # Random symbols.\r
232 !begin cygwin vars\r
233 # _WIN32_IE is required to expose identifiers that only make sense on\r
234 # systems with IE5+ installed, such as some arguments to SHGetFolderPath().\r
235 # WINVER etc perform a similar function for FlashWindowEx().\r
236 CFLAGS += -D_WIN32_IE=0x0500\r
237 CFLAGS += -DWINVER=0x0500 -D_WIN32_WINDOWS=0x0410 -D_WIN32_WINNT=0x0500\r
238 !end\r
239 \r
240 # ------------------------------------------------------------\r
241 # Definitions of object groups. A group name, followed by an =,\r
242 # followed by any number of objects or other already-defined group\r
243 # names. A line beginning `+' is assumed to continue the previous\r
244 # line.\r
245 \r
246 # Terminal emulator and its (platform-independent) dependencies.\r
247 TERMINAL = terminal wcwidth ldiscucs logging tree234 minibidi\r
248          + config dialog\r
249 \r
250 # GUI front end and terminal emulator (putty, puttytel).\r
251 GUITERM  = TERMINAL window windlg winctrls sizetip winucs winprint\r
252          + winutils wincfg sercfg winhelp winjump\r
253 \r
254 # Same thing on Unix.\r
255 UXTERM   = TERMINAL uxcfg sercfg uxucs uxprint timing\r
256 GTKTERM  = UXTERM gtkwin gtkcfg gtkdlg gtkfont gtkcols xkeysym\r
257 OSXTERM  = UXTERM osxwin osxdlg osxctrls\r
258 \r
259 # Non-SSH back ends (putty, puttytel, plink).\r
260 NONSSH   = telnet raw rlogin ldisc pinger\r
261 \r
262 # SSH back end (putty, plink, pscp, psftp).\r
263 SSH      = ssh sshcrc sshdes sshmd5 sshrsa sshrand sshsha sshblowf\r
264          + sshdh sshcrcda sshpubk sshzlib sshdss x11fwd portfwd\r
265          + sshaes sshsh256 sshsh512 sshbn wildcard pinger ssharcf\r
266          + sshgssc pgssapi\r
267 WINSSH   = SSH winnoise winpgntc wingss\r
268 UXSSH    = SSH uxnoise uxagentc uxgss\r
269 \r
270 # SFTP implementation (pscp, psftp).\r
271 SFTP     = sftp int64 logging\r
272 \r
273 # Miscellaneous objects appearing in all the network utilities (not\r
274 # Pageant or PuTTYgen).\r
275 MISC     = timing misc version settings tree234 proxy\r
276 WINMISC  = MISC winstore winnet winhandl cmdline windefs winmisc winproxy\r
277          + wintime\r
278 UXMISC   = MISC uxstore uxsel uxnet cmdline uxmisc uxproxy time\r
279 OSXMISC  = MISC uxstore uxsel osxsel uxnet uxmisc uxproxy time\r
280 \r
281 # Character set library, for use in pterm.\r
282 CHARSET  = sbcsdat slookup sbcs utf8 toucs fromucs xenc mimeenc macenc localenc\r
283 \r
284 # Standard libraries.\r
285 LIBS     = advapi32.lib user32.lib gdi32.lib comctl32.lib comdlg32.lib\r
286          + shell32.lib winmm.lib imm32.lib winspool.lib ole32.lib\r
287 \r
288 # Network backend sets. This also brings in the relevant attachment\r
289 # to proxy.c depending on whether we're crypto-avoidant or not.\r
290 BE_ALL   = be_all cproxy\r
291 BE_NOSSH = be_nossh nocproxy\r
292 BE_SSH   = be_ssh cproxy\r
293 BE_NONE  = be_none nocproxy\r
294 # More backend sets, with the additional Windows serial-port module.\r
295 W_BE_ALL = be_all_s winser cproxy\r
296 W_BE_NOSSH = be_nos_s winser nocproxy\r
297 # And with the Unix serial-port module.\r
298 U_BE_ALL = be_all_s uxser cproxy\r
299 U_BE_NOSSH = be_nos_s uxser nocproxy\r
300 \r
301 # ------------------------------------------------------------\r
302 # Definitions of actual programs. The program name, followed by a\r
303 # colon, followed by a list of objects. Also in the list may be the\r
304 # keywords [G] for Windows GUI app, [C] for Console app, [X] for\r
305 # X/GTK Unix app, [U] for command-line Unix app.\r
306 \r
307 putty    : [G] GUITERM NONSSH WINSSH W_BE_ALL WINMISC winx11 putty.res LIBS\r
308 puttytel : [G] GUITERM NONSSH W_BE_NOSSH WINMISC puttytel.res nogss LIBS\r
309 plink    : [C] winplink wincons NONSSH WINSSH W_BE_ALL logging WINMISC\r
310          + winx11 plink.res winnojmp LIBS\r
311 pscp     : [C] pscp winsftp wincons WINSSH BE_SSH SFTP wildcard WINMISC\r
312          + pscp.res winnojmp LIBS\r
313 psftp    : [C] psftp winsftp wincons WINSSH BE_SSH SFTP wildcard WINMISC\r
314          + psftp.res winnojmp LIBS\r
315 \r
316 pageant  : [G] winpgnt sshrsa sshpubk sshdes sshbn sshmd5 version tree234\r
317          + misc sshaes sshsha winpgntc sshdss sshsh256 sshsh512 winutils\r
318          + winmisc winhelp pageant.res LIBS\r
319 \r
320 puttygen : [G] winpgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version\r
321          + sshrand winnoise sshsha winstore misc winctrls sshrsa sshdss winmisc\r
322          + sshpubk sshaes sshsh256 sshsh512 import winutils puttygen.res\r
323          + tree234 notiming winhelp winnojmp LIBS wintime\r
324 \r
325 pterm    : [X] GTKTERM uxmisc misc ldisc settings uxpty uxsel BE_NONE uxstore\r
326          + uxsignal CHARSET cmdline uxpterm version time xpmpterm xpmptcfg\r
327          + nogss\r
328 putty    : [X] GTKTERM uxmisc misc ldisc settings uxsel U_BE_ALL uxstore\r
329          + uxsignal CHARSET uxputty NONSSH UXSSH UXMISC ux_x11 xpmputty\r
330          + xpmpucfg\r
331 puttytel : [X] GTKTERM uxmisc misc ldisc settings uxsel U_BE_NOSSH\r
332          + uxstore uxsignal CHARSET uxputty NONSSH UXMISC xpmputty xpmpucfg\r
333          + nogss\r
334 \r
335 plink    : [U] uxplink uxcons NONSSH UXSSH U_BE_ALL logging UXMISC uxsignal\r
336          + ux_x11\r
337 \r
338 puttygen : [U] cmdgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version\r
339          + sshrand uxnoise sshsha misc sshrsa sshdss uxcons uxstore uxmisc\r
340          + sshpubk sshaes sshsh256 sshsh512 import puttygen.res time tree234\r
341          + uxgen notiming\r
342 \r
343 pscp     : [U] pscp uxsftp uxcons UXSSH BE_SSH SFTP wildcard UXMISC\r
344 psftp    : [U] psftp uxsftp uxcons UXSSH BE_SSH SFTP wildcard UXMISC\r
345 \r
346 PuTTY    : [MX] osxmain OSXTERM OSXMISC CHARSET U_BE_ALL NONSSH UXSSH\r
347          + ux_x11 uxpty uxsignal testback putty.icns info.plist\r