3 # This file describes which PuTTY programs are made up from which
4 # object and resource files. It is processed into the various
5 # Makefiles by means of a Perl script. Makefile changes should
6 # really be made by editing this file and/or the Perl script, not
7 # by editing the actual Makefiles.
9 # ------------------------------------------------------------
10 # Top-level configuration.
12 # Overall project name.
14 # Locations and types of output Makefiles.
15 !makefile vc windows/Makefile.vc
16 !makefile vcproj windows/MSVC
17 !makefile cygwin windows/Makefile.cyg
18 !makefile borland windows/Makefile.bor
19 !makefile lcc windows/Makefile.lcc
20 !makefile gtk unix/Makefile.gtk
21 !makefile unix unix/Makefile.ux
22 !makefile am Makefile.am
23 !makefile osx macosx/Makefile
24 !makefile devcppproj windows/DEVCPP
25 !makefile vstudio10 windows/VS2010
26 !makefile vstudio12 windows/VS2012
33 # Help text added to the top of each Makefile, with /D converted
34 # into -D as appropriate for the particular Makefile.
38 # Extra options you can set:
40 # - COMPAT=/DAUTO_WINSOCK (Windows only)
41 # Causes PuTTY to assume that <windows.h> includes its own WinSock
42 # header file, so that it won't try to include <winsock.h>.
44 # - COMPAT=/DWINSOCK_TWO (Windows only)
45 # Causes the PuTTY utilities to include <winsock2.h> instead of
46 # <winsock.h>, except Plink which _needs_ WinSock 2 so it already
49 # - COMPAT=/DNO_SECURITY (Windows only)
50 # Disables Pageant's use of <aclapi.h>, which is not available
51 # with some development environments (such as older versions of
52 # the Cygwin/mingw GNU toolchain). This means that Pageant
53 # won't care about the local user ID of processes accessing it; a
54 # version of Pageant built with this option will therefore refuse
55 # to run under NT-series OSes on security grounds (although it
56 # will run fine on Win95-series OSes where there is no access
59 # - COMPAT=/DNO_MULTIMON (Windows only)
60 # Disables PuTTY's use of <multimon.h>, which is not available
61 # with some development environments. This means that PuTTY's
62 # full-screen mode (configurable to work on Alt-Enter) will
63 # not behave usefully in a multi-monitor environment.
65 # Note that this definition is always enabled in the Cygwin
66 # build, since at the time of writing this <multimon.h> is
67 # known not to be available in Cygwin.
69 # - COMPAT=/DNO_HTMLHELP (Windows only)
70 # Disables PuTTY's use of <htmlhelp.h>, which is not available
71 # with some development environments. The resulting binary
72 # will only look for an old-style WinHelp file (.HLP/.CNT), and
73 # will ignore any .CHM file.
75 # Note that this definition is always enabled in the Cygwin
76 # build, since at the time of writing this <htmlhelp.h> is
77 # known not to be available in Cygwin (although you can use
78 # the htmlhelp.h supplied with HTML Help Workshop).
80 # - RCFL=/DNO_MANIFESTS (Windows only)
81 # Disables inclusion of XML application manifests in the PuTTY
82 # binaries. This may be necessary to build for 64-bit Windows;
83 # the manifests are only included to use the XP GUI style on
84 # Windows XP, and the architecture tags are a lie on 64-bit.
87 # Disables PuTTY's ability to make IPv6 connections, enabling
88 # it to compile under development environments which do not
89 # support IPv6 in their header files.
91 # - COMPAT=/DNO_GSSAPI
92 # Disables PuTTY's ability to use GSSAPI functions for
93 # authentication and key exchange.
95 # - COMPAT=/DSTATIC_GSSAPI
96 # Causes PuTTY to try to link statically against the GSSAPI
97 # library instead of the default of doing it at run time.
99 # - COMPAT=/DMSVC4 (Windows only)
101 # Makes a couple of minor changes so that PuTTY compiles using
102 # MSVC 4. You will also need /DNO_SECURITY and /DNO_MULTIMON.
104 # - COMPAT=/DNO_SECUREZEROMEMORY (Windows only)
105 # Disables PuTTY's use of SecureZeroMemory(), which is missing
106 # from some environments' header files. This is enabled by
107 # default in the Cygwin Makefile.
109 # - XFLAGS=/DTELNET_DEFAULT
110 # Causes PuTTY to default to the Telnet protocol (in the absence
111 # of Default Settings and so on to the contrary). Normally PuTTY
112 # will default to SSH.
115 # Causes PuTTY to enable internal debugging.
117 # - XFLAGS=/DMALLOC_LOG
118 # Causes PuTTY to emit a file called putty_mem.log, logging every
119 # memory allocation and free, so you can track memory leaks.
121 # - XFLAGS=/DMINEFIELD (Windows only)
122 # Causes PuTTY to use a custom memory allocator, similar in
123 # concept to Electric Fence, in place of regular malloc(). Wastes
124 # huge amounts of RAM, but should cause heap-corruption bugs to
125 # show up as GPFs at the point of failure rather than appearing
126 # later on as second-level damage.
129 # Builds a version of PuTTY with some tweaks to make fuzz testing
130 # easier: the SSH random number generator is replaced by one that
131 # always returns the same thing. Note that this makes SSH
132 # completely insecure -- a FUZZING build should never be used to
133 # connect to a real server.
136 # ------------------------------------------------------------
137 # Additional text added verbatim to each individual Makefile.
140 CFLAGS = $(CFLAGS) /DHAS_GSSAPI
143 # `make install' target for Unix.
146 mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
147 $(INSTALL_PROGRAM) -m 755 plink $(DESTDIR)$(bindir)/plink
148 $(INSTALL_PROGRAM) -m 755 pscp $(DESTDIR)$(bindir)/pscp
149 $(INSTALL_PROGRAM) -m 755 psftp $(DESTDIR)$(bindir)/psftp
150 $(INSTALL_PROGRAM) -m 755 pterm $(DESTDIR)$(bindir)/pterm
151 if test -n "$(UTMP_GROUP)"; then \
152 chgrp $(UTMP_GROUP) $(DESTDIR)$(bindir)/pterm && \
153 chmod 2755 $(DESTDIR)$(bindir)/pterm; \
154 elif test -n "$(UTMP_USER)"; then \
155 chown $(UTMP_USER) $(DESTDIR)$(bindir)/pterm && \
156 chmod 4755 $(DESTDIR)$(bindir)/pterm; \
158 $(INSTALL_PROGRAM) -m 755 putty $(DESTDIR)$(bindir)/putty
159 $(INSTALL_PROGRAM) -m 755 puttygen $(DESTDIR)$(bindir)/puttygen
160 $(INSTALL_PROGRAM) -m 755 puttytel $(DESTDIR)$(bindir)/puttytel
161 $(INSTALL_DATA) -m 644 ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1
162 $(INSTALL_DATA) -m 644 ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1
163 $(INSTALL_DATA) -m 644 ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1
164 $(INSTALL_DATA) -m 644 ../doc/pterm.1 $(DESTDIR)$(man1dir)/pterm.1
165 $(INSTALL_DATA) -m 644 ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1
166 $(INSTALL_DATA) -m 644 ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1
167 $(INSTALL_DATA) -m 644 ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1
170 $(MAKE) install INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s"
176 # List the man pages for the automake makefile.
178 man1_MANS = doc/plink.1 doc/pscp.1 doc/psftp.1 doc/pterm.1 \
179 doc/putty.1 doc/puttygen.1 doc/puttytel.1
182 # In automake, chgrp/chmod pterm after installation, if configured to.
186 @SETID_CMD@ $(bindir)/pterm
187 chmod @SETID_MODE@ $(bindir)/pterm
193 # _WIN32_IE is required to expose identifiers that only make sense on
194 # systems with IE5+ installed, such as some arguments to SHGetFolderPath().
195 # WINVER etc perform a similar function for FlashWindowEx().
196 CFLAGS += -D_WIN32_IE=0x0500
197 CFLAGS += -DWINVER=0x0500 -D_WIN32_WINDOWS=0x0410 -D_WIN32_WINNT=0x0500
200 # ------------------------------------------------------------
201 # Definitions of object groups. A group name, followed by an =,
202 # followed by any number of objects or other already-defined group
203 # names. A line beginning `+' is assumed to continue the previous
206 # Terminal emulator and its (platform-independent) dependencies.
207 TERMINAL = terminal wcwidth ldiscucs logging tree234 minibidi
210 # GUI front end and terminal emulator (putty, puttytel).
211 GUITERM = TERMINAL window windlg winctrls sizetip winucs winprint
212 + winutils wincfg sercfg winhelp winjump miscucs
214 # Same thing on Unix.
215 UXTERM = TERMINAL uxcfg sercfg uxucs uxprint timing callback miscucs
216 GTKTERM = UXTERM gtkwin gtkcfg gtkdlg gtkfont gtkcols gtkmisc xkeysym
217 OSXTERM = UXTERM osxwin osxdlg osxctrls
219 # Non-SSH back ends (putty, puttytel, plink).
220 NONSSH = telnet raw rlogin ldisc pinger
222 # SSH back end (putty, plink, pscp, psftp).
223 SSH = ssh sshcrc sshdes sshmd5 sshrsa sshrand sshsha sshblowf
224 + sshdh sshcrcda sshpubk sshzlib sshdss x11fwd portfwd
225 + sshaes sshccp sshsh256 sshsh512 sshbn wildcard pinger ssharcf
226 + sshgssc pgssapi sshshare sshecc
227 WINSSH = SSH winnoise winsecur winpgntc wingss winshare winnps winnpc
229 UXSSH = SSH uxnoise uxagentc uxgss uxshare
231 # SFTP implementation (pscp, psftp).
232 SFTP = sftp int64 logging
234 # Miscellaneous objects appearing in all the network utilities (not
235 # Pageant or PuTTYgen).
236 MISC = timing callback misc version settings tree234 proxy conf
237 WINMISC = MISC winstore winnet winhandl cmdline windefs winmisc winproxy
238 + wintime winhsock errsock
239 UXMISC = MISC uxstore uxsel uxnet uxpeer cmdline uxmisc uxproxy time
240 OSXMISC = MISC uxstore uxsel osxsel uxnet uxpeer uxmisc uxproxy time
242 # import.c and dependencies, for PuTTYgen-like utilities that have to
243 # load foreign key files.
244 IMPORT = import sshbcrypt sshblowf
246 # Character set library, for use in pterm.
247 CHARSET = sbcsdat slookup sbcs utf8 toucs fromucs xenc mimeenc macenc localenc
249 # Standard libraries.
250 LIBS = advapi32.lib user32.lib gdi32.lib comctl32.lib comdlg32.lib
251 + shell32.lib winmm.lib imm32.lib winspool.lib ole32.lib
253 # Network backend sets. This also brings in the relevant attachment
254 # to proxy.c depending on whether we're crypto-avoidant or not.
255 BE_ALL = be_all cproxy
256 BE_NOSSH = be_nossh nocproxy
257 BE_SSH = be_ssh cproxy
258 BE_NONE = be_none nocproxy
259 # More backend sets, with the additional Windows serial-port module.
260 W_BE_ALL = be_all_s winser cproxy
261 W_BE_NOSSH = be_nos_s winser nocproxy
262 # And with the Unix serial-port module.
263 U_BE_ALL = be_all_s uxser cproxy
264 U_BE_NOSSH = be_nos_s uxser nocproxy
266 # ------------------------------------------------------------
267 # Definitions of actual programs. The program name, followed by a
268 # colon, followed by a list of objects. Also in the list may be the
269 # keywords [G] for Windows GUI app, [C] for Console app, [X] for
270 # X/GTK Unix app, [U] for command-line Unix app.
272 putty : [G] GUITERM NONSSH WINSSH W_BE_ALL WINMISC winx11 putty.res LIBS
273 puttytel : [G] GUITERM NONSSH W_BE_NOSSH WINMISC puttytel.res nogss LIBS
274 plink : [C] winplink wincons NONSSH WINSSH W_BE_ALL logging WINMISC
275 + winx11 plink.res winnojmp noterm LIBS
276 pscp : [C] pscp winsftp wincons WINSSH BE_SSH SFTP wildcard WINMISC
277 + pscp.res winnojmp LIBS
278 psftp : [C] psftp winsftp wincons WINSSH BE_SSH SFTP wildcard WINMISC
279 + psftp.res winnojmp LIBS
281 pageant : [G] winpgnt pageant sshrsa sshpubk sshdes sshbn sshmd5 version
282 + tree234 misc sshaes sshsha winsecur winpgntc sshdss sshsh256
283 + sshsh512 winutils sshecc winmisc winhelp conf pageant.res LIBS
285 puttygen : [G] winpgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version
286 + sshrand winnoise sshsha winstore misc winctrls sshrsa sshdss winmisc
287 + sshpubk sshaes sshsh256 sshsh512 IMPORT winutils puttygen.res
288 + tree234 notiming winhelp winnojmp conf LIBS wintime sshecc
291 pterm : [X] GTKTERM uxmisc misc ldisc settings uxpty uxsel BE_NONE uxstore
292 + uxsignal CHARSET cmdline uxpterm version time xpmpterm xpmptcfg
294 putty : [X] GTKTERM uxmisc misc ldisc settings uxsel U_BE_ALL uxstore
295 + uxsignal CHARSET uxputty NONSSH UXSSH UXMISC ux_x11 xpmputty
297 puttytel : [X] GTKTERM uxmisc misc ldisc settings uxsel U_BE_NOSSH
298 + uxstore uxsignal CHARSET uxputty NONSSH UXMISC xpmputty xpmpucfg
301 plink : [U] uxplink uxcons NONSSH UXSSH U_BE_ALL logging UXMISC uxsignal
304 puttygen : [U] cmdgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version
305 + sshrand uxnoise sshsha misc sshrsa sshdss uxcons uxstore uxmisc
306 + sshpubk sshaes sshsh256 sshsh512 IMPORT puttygen.res time tree234
307 + uxgen notiming conf sshecc sshecdsag
309 pscp : [U] pscp uxsftp uxcons UXSSH BE_SSH SFTP wildcard UXMISC
310 psftp : [U] psftp uxsftp uxcons UXSSH BE_SSH SFTP wildcard UXMISC
312 pageant : [X] uxpgnt uxagentc pageant sshrsa sshpubk sshdes sshbn sshmd5
313 + version tree234 misc sshaes sshsha sshdss sshsh256 sshsh512 sshecc
314 + conf uxsignal nocproxy nogss be_none x11fwd ux_x11 uxcons gtkask
317 PuTTY : [MX] osxmain OSXTERM OSXMISC CHARSET U_BE_ALL NONSSH UXSSH
318 + ux_x11 uxpty uxsignal testback putty.icns info.plist
320 fuzzterm : [U] UXTERM CHARSET misc uxmisc uxucs fuzzterm time settings