Sebastian Kuschel reports that pfd_closing can be called for a socket
[u/mdw/putty] / README
CommitLineData
6e9a74eb 1This is the README for the source archive of PuTTY, a free Win32
8fb63331 2and Unix Telnet and SSH client.
b9c299bb 3
58de2f3c 4If you want to rebuild PuTTY from source, we provide a variety of
4494be0a 5Makefiles and equivalents. (If you have fetched the source from
6Subversion, you'll have to generate the Makefiles yourself -- see
7below.)
b69755a7 8
8ce999b9 9There are various compile-time directives that you can use to
10disable or modify certain features; it may be necessary to do this
11in some environments. They are documented in `Recipe', and in
12comments in many of the generated Makefiles.
13
b69755a7 14For building on Windows:
7603011f 15
6da41155 16 - windows/Makefile.vc is for command-line builds on MS Visual C++
17 systems. Change into the `windows' subdirectory and type `nmake
18 -f Makefile.vc' to build all the PuTTY binaries.
7603011f 19
577abbb6 20 Last time we checked, PuTTY built with vanilla VC7, or VC6 with
24c30afe 21 an up-to-date Platform SDK. (It might still be possible to build
22 with vanilla VC6, but you'll certainly have to remove some
23 functionality with directives such as NO_IPV6.)
577abbb6 24
48ea43de 25 (We've also had reports of success building with the
62793edf 26 OpenWatcom compiler -- www.openwatcom.org -- using Makefile.vc
27 with `wmake -ms -f makefile.vc' and NO_MULTIMON, although we
48ea43de 28 haven't tried this ourselves. Version 1.3 is reported to work.)
62793edf 29
6da41155 30 - Inside the windows/MSVC subdirectory are MS Visual Studio project
31 files for doing GUI-based builds of the various PuTTY utilities.
32 These have been tested on Visual Studio 6.
58de2f3c 33
34 You should be able to build each PuTTY utility by loading the
35 corresponding .dsp file in Visual Studio. For example,
36 MSVC/putty/putty.dsp builds PuTTY itself, MSVC/plink/plink.dsp
37 builds Plink, and so on.
38
6da41155 39 - windows/Makefile.bor is for the Borland C compiler. Type `make -f
40 Makefile.bor' while in the `windows' subdirectory to build all
41 the PuTTY binaries.
7603011f 42
65e2b30c 43 - windows/Makefile.cyg is for Cygwin / MinGW installations. Type
6da41155 44 `make -f Makefile.cyg' while in the `windows' subdirectory to
48ea43de 45 build all the PuTTY binaries.
46
47 You'll probably need quite a recent version of the w32api package.
48 Note that by default the multiple monitor and HTML Help support are
49 excluded from the Cygwin build, since at the time of writing Cygwin
50 doesn't include the necessary headers.
7603011f 51
6da41155 52 - windows/Makefile.lcc is for lcc-win32. Type `make -f
53 Makefile.lcc' while in the `windows' subdirectory. (You will
54 probably need to specify COMPAT=-DNO_MULTIMON.)
2c228de6 55
985b6440 56 - Inside the windows/DEVCPP subdirectory are Dev-C++ project
57 files for doing GUI-based builds of the various PuTTY utilities.
58
24c30afe 59The PuTTY team actively use Makefile.vc (with VC7) and Makefile.cyg
60(with mingw32), so we'll probably notice problems with those
61toolchains fairly quickly. Please report any problems with the other
62toolchains mentioned above.
48ea43de 63
b69755a7 64For building on Unix:
65
76d3a838 66 - unix/configure is for Unix and GTK. If you don't have GTK, you
b69755a7 67 should still be able to build the command-line utilities (PSCP,
b1864213 68 PSFTP, Plink, PuTTYgen) using this script. To use it, change into
69 the `unix' subdirectory, run `./configure' and then `make'. Or you
70 can do the same in the top-level directory (we provide a little
71 wrapper that invokes configure one level down), which is more like
72 a normal Unix source archive but doesn't do so well at keeping the
73 per-platform stuff in each platform's subdirectory; it's up to you.
577abbb6 74
75 Note that Unix PuTTY has mostly only been tested on Linux so far;
76 portability problems such as BSD-style ptys or different header file
77 requirements are expected.
de4fb573 78
24c30afe 79 - unix/Makefile.gtk and unix/Makefile.ux are for non-autoconfigured
80 builds. These makefiles expect you to change into the `unix'
81 subdirectory, then run `make -f Makefile.gtk' or `make -f
82 Makefile.ux' respectively. Makefile.gtk builds all the programs but
83 relies on Gtk, whereas Makefile.ux builds only the command-line
84 utilities and has no Gtk dependence.
b69755a7 85
de4fb573 86 - For the graphical utilities, Gtk+-1.2 and Gtk+-2.0 should both be
691b58ac 87 supported. If you have both installed, you can manually specify
88 which one you want by giving the option '--with-gtk=1' or
89 '--with-gtk=2' to the configure script. (2 is the default, of
90 course.) In the absence of either, the configure script will
44747c53 91 automatically construct a Makefile which builds only the
691b58ac 92 command-line utilities; you can manually create this condition by
93 giving configure the option '--without-gtk'.
44747c53 94
95 - pterm would like to be setuid or setgid, as appropriate, to permit
96 it to write records of user logins to /var/run/utmp and
97 /var/log/wtmp. (Of course it will not use this privilege for
98 anything else, and in particular it will drop all privileges before
99 starting up complex subsystems like GTK.) By default the makefile
100 will not attempt to add privileges to the pterm executable at 'make
101 install' time, but you can ask it to do so by running configure
102 with the option '--enable-setuid=USER' or '--enable-setgid=GROUP'.
103
104 - The Unix Makefiles have an `install' target. Note that by default
105 it tries to install `man' pages; if you have fetched the source via
106 Subversion then you will need to have built these using Halibut
107 first - see below.
142a7757 108
65e2b30c 109 - It's also possible to build the Windows version of PuTTY to run
110 on Unix by using Winelib. To do this, change to the `windows'
111 directory and run `make -f Makefile.cyg CC=winegcc RC=wrc'.
112
7603011f 113All of the Makefiles are generated automatically from the file
44747c53 114`Recipe' by the Perl script `mkfiles.pl' (except for the Unix one,
115which is generated by the `configure' script; mkfiles.pl only
116generates the input to automake). Additions and corrections to Recipe,
117mkfiles.pl and/or configure.ac are much more useful than additions and
118corrections to the actual Makefiles, Makefile.am or Makefile.in.
577abbb6 119
120The Unix `configure' script and its various requirements are generated
121by the shell script `mkauto.sh', which requires GNU Autoconf, GNU
122Automake, and Gtk; if you've got the source from Subversion rather
123than using one of our source snapshots, you'll need to run this
44747c53 124yourself. The input file to Automake is generated by mkfiles.pl along
125with all the rest of the makefiles, so you will need to run mkfiles.pl
126and then mkauto.sh.
3d541627 127
142a7757 128Documentation (in various formats including Windows Help and Unix
577abbb6 129`man' pages) is built from the Halibut (`.but') files in the `doc'
130subdirectory using `doc/Makefile'. If you aren't using one of our
131source snapshots, you'll need to do this yourself. Halibut can be
132found at <http://www.chiark.greenend.org.uk/~sgtatham/halibut/>.
142a7757 133
b9c299bb 134The PuTTY home web site is
135
df96b74b 136 http://www.chiark.greenend.org.uk/~sgtatham/putty/
b9c299bb 137
6e9a74eb 138If you want to send bug reports or feature requests, please read the
139Feedback section of the web site before doing so. Sending one-line
140reports saying `it doesn't work' will waste your time as much as
141ours.
b9c299bb 142
143See the file LICENCE for the licence conditions.