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