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