Add an include statement to Makefile.gtk that imports if present a
[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
89c2674b 21 an up-to-date Platform SDK. (It is possible to build with
22 vanilla VC6, but you'll have to remove some functionality with
23 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
6da41155 43 - windows/Makefile.cyg is for Cygwin / mingw32 installations. Type
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
48ea43de 59The PuTTY team actively use Makefile.vc and Makefile.cyg, so we'll
60probably notice problems with those toolchains fairly quickly. Please
61report any problems with the other toolchains mentioned above.
62
b69755a7 63For building on Unix:
64
76d3a838 65 - unix/configure is for Unix and GTK. If you don't have GTK, you
b69755a7 66 should still be able to build the command-line utilities (PSCP,
76d3a838 67 PSFTP, Plink, PuTTYgen) using this script. To use it, change
68 into the `unix' subdirectory, run `./configure' and then `make'.
577abbb6 69
70 Note that Unix PuTTY has mostly only been tested on Linux so far;
71 portability problems such as BSD-style ptys or different header file
72 requirements are expected.
76d3a838 73
74 - unix/Makefile.gtk is for non-autoconfigured builds. This makefile
75 expects you to change into the `unix' subdirectory, then run `make
577abbb6 76 -f Makefile.gtk'.
b69755a7 77
577abbb6 78 - For the graphical utilities, Gtk+-1.2 is required. Gtk+-2.0 is not
8fb63331 79 yet supported.
80
577abbb6 81 - Both Unix Makefiles have an `install' target. Note that by default
82 it tries to install `man' pages, which you may need to have built
83 using Halibut first -- see below.
142a7757 84
7603011f 85All of the Makefiles are generated automatically from the file
86`Recipe' by the Perl script `mkfiles.pl'. Additions and corrections
87to Recipe and the mkfiles.pl are much more useful than additions and
577abbb6 88corrections to the alternative Makefiles themselves.
89
90The Unix `configure' script and its various requirements are generated
91by the shell script `mkauto.sh', which requires GNU Autoconf, GNU
92Automake, and Gtk; if you've got the source from Subversion rather
93than using one of our source snapshots, you'll need to run this
94yourself.
3d541627 95
142a7757 96Documentation (in various formats including Windows Help and Unix
577abbb6 97`man' pages) is built from the Halibut (`.but') files in the `doc'
98subdirectory using `doc/Makefile'. If you aren't using one of our
99source snapshots, you'll need to do this yourself. Halibut can be
100found at <http://www.chiark.greenend.org.uk/~sgtatham/halibut/>.
142a7757 101
b9c299bb 102The PuTTY home web site is
103
df96b74b 104 http://www.chiark.greenend.org.uk/~sgtatham/putty/
b9c299bb 105
6e9a74eb 106If you want to send bug reports or feature requests, please read the
107Feedback section of the web site before doing so. Sending one-line
108reports saying `it doesn't work' will waste your time as much as
109ours.
b9c299bb 110
111See the file LICENCE for the licence conditions.