7603011f |
1 | # -*- makefile -*- |
2 | # |
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. |
8 | |
e35fb54b |
9 | # ------------------------------------------------------------ |
10 | # Top-level configuration. |
11 | |
12 | # Overall project name. |
13 | !name putty |
14 | # Locations and types of output Makefiles. |
6da41155 |
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 |
e35fb54b |
20 | !makefile gtk unix/Makefile.gtk |
76d3a838 |
21 | !makefile ac unix/Makefile.in |
e35fb54b |
22 | !makefile mpw mac/Makefile.mpw |
1ddda1ca |
23 | !makefile osx macosx/Makefile |
cdd310bb |
24 | # Source directories. |
25 | !srcdir charset/ |
6da41155 |
26 | !srcdir windows/ |
cdd310bb |
27 | !srcdir unix/ |
28 | !srcdir mac/ |
1ddda1ca |
29 | !srcdir macosx/ |
e35fb54b |
30 | |
7603011f |
31 | # Help text added to the top of each Makefile, with /D converted |
32 | # into -D as appropriate for the particular Makefile. |
33 | |
34 | !begin help |
35 | # |
36 | # Extra options you can set: |
37 | # |
7603011f |
38 | # - VER=/DSNAPSHOT=1999-01-25 |
39 | # Generates executables whose About box report them as being a |
40 | # development snapshot. |
41 | # |
42 | # - VER=/DRELEASE=0.43 |
43 | # Generates executables whose About box report them as being a |
44 | # release version. |
45 | # |
46 | # - COMPAT=/DAUTO_WINSOCK |
47 | # Causes PuTTY to assume that <windows.h> includes its own WinSock |
48 | # header file, so that it won't try to include <winsock.h>. |
49 | # |
50 | # - COMPAT=/DWINSOCK_TWO |
51 | # Causes the PuTTY utilities to include <winsock2.h> instead of |
52 | # <winsock.h>, except Plink which _needs_ WinSock 2 so it already |
53 | # does this. |
54 | # |
55 | # - COMPAT=/DNO_SECURITY |
56 | # Disables Pageant's use of <aclapi.h>, which is not available |
7c521ac9 |
57 | # with some development environments (such as older versions of |
58 | # the Cygwin/mingw GNU toolchain). This means that Pageant |
7603011f |
59 | # won't care about the local user ID of processes accessing it; a |
60 | # version of Pageant built with this option will therefore refuse |
61 | # to run under NT-series OSes on security grounds (although it |
62 | # will run fine on Win95-series OSes where there is no access |
63 | # control anyway). |
64 | # |
7603011f |
65 | # - COMPAT=/DNO_MULTIMON |
66 | # Disables PuTTY's use of <multimon.h>, which is not available |
67 | # with some development environments. This means that PuTTY's |
68 | # full-screen mode (configurable to work on Alt-Enter) will |
69 | # not behave usefully in a multi-monitor environment. |
70 | # |
71 | # Note that this definition is always enabled in the Cygwin |
72 | # build, since at the time of writing this <multimon.h> is |
73 | # known not to be available in Cygwin. |
74 | # |
05581745 |
75 | # - COMPAT=/DNO_IPV6 |
76 | # Disables PuTTY's ability to make IPv6 connections, enabling |
77 | # it to compile under development environments which do not |
78 | # support IPv6 in their header files. |
79 | # |
7603011f |
80 | # - COMPAT=/DMSVC4 |
81 | # - RCFL=/DMSVC4 |
82 | # Makes a couple of minor changes so that PuTTY compiles using |
83 | # MSVC 4. You will also need /DNO_SECURITY and /DNO_MULTIMON. |
84 | # |
85 | # - RCFL=/DASCIICTLS |
86 | # Uses ASCII rather than Unicode to specify the tab control in |
87 | # the resource file. Probably most useful when compiling with |
88 | # Cygnus/mingw32, whose resource compiler may have less of a |
89 | # problem with it. |
90 | # |
4044fc45 |
91 | # - XFLAGS=/DTELNET_DEFAULT |
92 | # Causes PuTTY to default to the Telnet protocol (in the absence |
93 | # of Default Settings and so on to the contrary). Normally PuTTY |
94 | # will default to SSH. |
95 | # |
7603011f |
96 | # - XFLAGS=/DDEBUG |
97 | # Causes PuTTY to enable internal debugging. |
98 | # |
99 | # - XFLAGS=/DMALLOC_LOG |
100 | # Causes PuTTY to emit a file called putty_mem.log, logging every |
101 | # memory allocation and free, so you can track memory leaks. |
102 | # |
103 | # - XFLAGS=/DMINEFIELD |
104 | # Causes PuTTY to use a custom memory allocator, similar in |
105 | # concept to Electric Fence, in place of regular malloc(). Wastes |
106 | # huge amounts of RAM, but should cause heap-corruption bugs to |
107 | # show up as GPFs at the point of failure rather than appearing |
108 | # later on as second-level damage. |
109 | # |
110 | !end |
111 | |
e35fb54b |
112 | # ------------------------------------------------------------ |
113 | # Additional text added verbatim to each individual Makefile. |
114 | |
115 | # Hack to force version.o to be rebuilt always. |
116 | !begin vc |
117 | version.obj: *.c *.h *.rc |
d8284c29 |
118 | cl $(VER) $(CFLAGS) /c ..\version.c |
e35fb54b |
119 | !end |
6da41155 |
120 | !specialobj vc version |
e35fb54b |
121 | !begin cygwin |
6da41155 |
122 | version.o: FORCE |
e35fb54b |
123 | FORCE: |
d8284c29 |
124 | $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c |
e35fb54b |
125 | !end |
6da41155 |
126 | !specialobj cygwin version |
e35fb54b |
127 | !begin borland |
128 | version.obj: FORCE |
129 | FORCE: |
d8284c29 |
130 | bcc32 $(VER) $(CFLAGS) /c ..\version.c |
e35fb54b |
131 | !end |
6da41155 |
132 | !specialobj borland version |
e35fb54b |
133 | !begin lcc |
0aafb388 |
134 | version.obj: FORCE |
e35fb54b |
135 | FORCE: |
d8284c29 |
136 | lcc $(VER) $(CFLAGS) /c ..\version.c |
e35fb54b |
137 | !end |
6da41155 |
138 | !specialobj lcc version |
e35fb54b |
139 | # For Unix, we also need the gross MD5 hack that causes automatic |
140 | # version number selection in release source archives. |
141 | !begin gtk |
142 | version.o: FORCE; |
143 | FORCE: |
144 | if test -z "$(VER)" && (cd ..; md5sum -c manifest); then \ |
d8284c29 |
145 | $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat ../version.def` -c ../version.c; \ |
e35fb54b |
146 | else \ |
d8284c29 |
147 | $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c; \ |
e35fb54b |
148 | fi |
149 | !end |
6da41155 |
150 | !specialobj gtk version |
e35fb54b |
151 | |
152 | # `make install' target for Unix. |
153 | !begin gtk |
154 | install: |
155 | $(INSTALL_PROGRAM) -m 755 plink $(DESTDIR)$(bindir)/plink |
156 | $(INSTALL_PROGRAM) -m 755 pscp $(DESTDIR)$(bindir)/pscp |
157 | $(INSTALL_PROGRAM) -m 755 psftp $(DESTDIR)$(bindir)/psftp |
158 | $(INSTALL_PROGRAM) -m 755 pterm $(DESTDIR)$(bindir)/pterm |
e693a2d9 |
159 | if test -n "$(UTMP_GROUP)"; then \ |
160 | chgrp $(UTMP_GROUP) $(DESTDIR)$(bindir)/pterm && \ |
161 | chmod 2755 $(DESTDIR)$(bindir)/pterm; \ |
162 | elif test -n "$(UTMP_USER)"; then \ |
163 | chown $(UTMP_USER) $(DESTDIR)$(bindir)/pterm && \ |
164 | chmod 4755 $(DESTDIR)$(bindir)/pterm; \ |
165 | fi |
e35fb54b |
166 | $(INSTALL_PROGRAM) -m 755 putty $(DESTDIR)$(bindir)/putty |
167 | $(INSTALL_PROGRAM) -m 755 puttygen $(DESTDIR)$(bindir)/puttygen |
168 | $(INSTALL_PROGRAM) -m 755 puttytel $(DESTDIR)$(bindir)/puttytel |
169 | $(INSTALL_DATA) -m 644 ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1 |
170 | $(INSTALL_DATA) -m 644 ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1 |
171 | $(INSTALL_DATA) -m 644 ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1 |
172 | $(INSTALL_DATA) -m 644 ../doc/pterm.1 $(DESTDIR)$(man1dir)/pterm.1 |
173 | $(INSTALL_DATA) -m 644 ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1 |
174 | $(INSTALL_DATA) -m 644 ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1 |
175 | $(INSTALL_DATA) -m 644 ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1 |
176 | |
177 | install-strip: |
178 | $(MAKE) install INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" |
179 | !end |
77603464 |
180 | !begin osx vars |
1ddda1ca |
181 | CFLAGS += -DMACOSX |
182 | !end |
e35fb54b |
183 | |
184 | # ------------------------------------------------------------ |
7603011f |
185 | # Definitions of object groups. A group name, followed by an =, |
186 | # followed by any number of objects or other already-defined group |
187 | # names. A line beginning `+' is assumed to continue the previous |
188 | # line. |
189 | |
f0fccd51 |
190 | # Terminal emulator and its (platform-independent) dependencies. |
191 | TERMINAL = terminal wcwidth ldiscucs logging tree234 minibidi |
192 | + config dialog |
193 | |
7603011f |
194 | # GUI front end and terminal emulator (putty, puttytel). |
6da41155 |
195 | GUITERM = TERMINAL window windlg winctrls sizetip winucs winprint |
f0fccd51 |
196 | + winutils wincfg |
7603011f |
197 | |
f5dd8adb |
198 | # Same thing on Unix. |
1ddda1ca |
199 | UXTERM = TERMINAL uxcfg uxucs uxprint timing |
200 | GTKTERM = UXTERM gtkwin gtkcfg gtkdlg gtkcols gtkpanel xkeysym |
201 | OSXTERM = UXTERM osxwin osxdlg osxctrls |
1d009ae7 |
202 | |
7603011f |
203 | # Non-SSH back ends (putty, puttytel, plink). |
39934deb |
204 | NONSSH = telnet raw rlogin ldisc pinger |
7603011f |
205 | |
206 | # SSH back end (putty, plink, pscp, psftp). |
c5e438ec |
207 | SSH = ssh sshcrc sshdes sshmd5 sshrsa sshrand sshsha sshblowf |
208 | + sshdh sshcrcda sshpubk sshzlib sshdss x11fwd portfwd |
a2add208 |
209 | + sshaes sshsh512 sshbn wildcard pinger ssharcf |
6da41155 |
210 | WINSSH = SSH winnoise winpgntc |
c5e438ec |
211 | UXSSH = SSH uxnoise uxagentc |
0c4b7799 |
212 | MACSSH = SSH macnoise |
7603011f |
213 | |
214 | # SFTP implementation (pscp, psftp). |
215 | SFTP = sftp int64 logging |
216 | |
217 | # Miscellaneous objects appearing in all the network utilities (not |
218 | # Pageant or PuTTYgen). |
39934deb |
219 | MISC = timing misc version settings tree234 proxy |
aca589d9 |
220 | WINMISC = MISC winstore winnet cmdline windefs winmisc pproxy wintime |
221 | UXMISC = MISC uxstore uxsel uxnet cmdline uxmisc uxproxy time |
1ddda1ca |
222 | OSXMISC = MISC uxstore uxsel osxsel uxnet uxmisc uxproxy time |
39934deb |
223 | MACMISC = MISC macstore macnet mtcpnet otnet macmisc macabout pproxy |
7603011f |
224 | |
2dc6356a |
225 | # Character set library, for use in pterm. |
d4413bd2 |
226 | CHARSET = sbcsdat slookup sbcs utf8 toucs fromucs xenc mimeenc macenc localenc |
2dc6356a |
227 | |
7440fd44 |
228 | # Standard libraries. |
7603011f |
229 | LIBS = advapi32.lib user32.lib gdi32.lib comctl32.lib comdlg32.lib |
230 | + shell32.lib winmm.lib imm32.lib winspool.lib |
7603011f |
231 | |
f33ba69e |
232 | # Network backend sets. This also brings in the relevant attachment |
233 | # to proxy.c depending on whether we're crypto-avoidant or not. |
234 | BE_ALL = be_all cproxy |
235 | BE_NOSSH = be_nossh nocproxy |
236 | BE_SSH = be_none cproxy |
237 | BE_NONE = be_none nocproxy |
238 | |
e35fb54b |
239 | # ------------------------------------------------------------ |
7603011f |
240 | # Definitions of actual programs. The program name, followed by a |
241 | # colon, followed by a list of objects. Also in the list may be the |
f7f27309 |
242 | # keywords [G] for Windows GUI app, [C] for Console app, [X] for |
dddf640d |
243 | # X/GTK Unix app, [U] for command-line Unix app, [M] for Macintosh app. |
7603011f |
244 | |
f33ba69e |
245 | putty : [G] GUITERM NONSSH WINSSH BE_ALL WINMISC win_res.res LIBS |
246 | puttytel : [G] GUITERM NONSSH BE_NOSSH WINMISC win_res.res LIBS |
6da41155 |
247 | plink : [C] winplink wincons NONSSH WINSSH BE_ALL logging WINMISC |
7440fd44 |
248 | + plink.res LIBS |
bf1e6912 |
249 | pscp : [C] pscp winsftp wincons WINSSH BE_SSH SFTP wildcard WINMISC |
250 | + pscp.res LIBS |
dee42491 |
251 | psftp : [C] psftp winsftp wincons WINSSH BE_SSH SFTP wildcard WINMISC |
252 | + pscp.res LIBS |
7603011f |
253 | |
6da41155 |
254 | pageant : [G] winpgnt sshrsa sshpubk sshdes sshbn sshmd5 version tree234 |
255 | + misc sshaes sshsha winpgntc sshdss sshsh512 winutils winmisc |
b492c4d7 |
256 | + pageant.res LIBS |
7603011f |
257 | |
6da41155 |
258 | puttygen : [G] winpgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version |
259 | + sshrand winnoise sshsha winstore misc winctrls sshrsa sshdss winmisc |
5d17ccfc |
260 | + sshpubk sshaes sshsh512 import winutils puttygen.res tree234 |
aca589d9 |
261 | + notiming LIBS wintime |
f7f27309 |
262 | |
1ddda1ca |
263 | pterm : [X] GTKTERM uxmisc misc ldisc settings uxpty uxsel BE_NONE uxstore |
aca589d9 |
264 | + uxsignal CHARSET cmdline uxpterm version time |
1ddda1ca |
265 | putty : [X] GTKTERM uxmisc misc ldisc settings uxsel BE_ALL uxstore |
4397c725 |
266 | + uxsignal CHARSET uxputty NONSSH UXSSH UXMISC ux_x11 |
1ddda1ca |
267 | puttytel : [X] GTKTERM uxmisc misc ldisc settings uxsel BE_NOSSH |
4397c725 |
268 | + uxstore uxsignal CHARSET uxputty NONSSH UXMISC |
c5e438ec |
269 | |
4397c725 |
270 | plink : [U] uxplink uxcons NONSSH UXSSH BE_ALL logging UXMISC uxsignal ux_x11 |
cd6ca416 |
271 | |
47a6b94c |
272 | puttygen : [U] cmdgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version |
273 | + sshrand uxnoise sshsha misc sshrsa sshdss uxcons uxstore uxmisc |
aca589d9 |
274 | + sshpubk sshaes sshsh512 import puttygen.res time tree234 uxgen |
275 | + notiming |
47a6b94c |
276 | |
bf1e6912 |
277 | pscp : [U] pscp uxsftp uxcons UXSSH BE_SSH SFTP wildcard UXMISC |
dee42491 |
278 | psftp : [U] psftp uxsftp uxcons UXSSH BE_SSH SFTP wildcard UXMISC |
d6cc41e6 |
279 | |
f33ba69e |
280 | PuTTY : [M] terminal wcwidth ldiscucs logging BE_ALL mac macdlg macevlog |
0c4b7799 |
281 | + macterm macucs mac_res.rsrc testback NONSSH MACSSH MACMISC CHARSET |
68b1e05a |
282 | + stricmp vsnprint dialog config macctrls minibidi |
f33ba69e |
283 | PuTTYtel : [M] terminal wcwidth ldiscucs logging BE_NOSSH mac macdlg |
284 | + macevlog macterm macucs mac_res.rsrc testback NONSSH MACMISC |
68b1e05a |
285 | + CHARSET stricmp vsnprint dialog config macctrls minibidi |
06c24bc0 |
286 | PuTTYgen : [M] macpgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version |
287 | + sshrand macnoise sshsha macstore misc sshrsa sshdss macmisc sshpubk |
217b88d1 |
288 | + sshaes sshsh512 import macpgen.rsrc macpgkey macabout |
1ddda1ca |
289 | |
290 | PuTTY : [MX] osxmain OSXTERM OSXMISC CHARSET BE_ALL NONSSH UXSSH |
0980c4f2 |
291 | + ux_x11 uxpty uxsignal testback putty.icns info.plist |