Add support for generating project files for use with Dev-C++, contributed
[sgt/putty] / 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 Subversion, you'll have to generate the Makefiles yourself -- see
7 below.)
8
9 For building on Windows:
10
11 - windows/Makefile.vc is for command-line builds on MS Visual C++
12 systems. Change into the `windows' subdirectory and type `nmake
13 -f Makefile.vc' to build all the PuTTY binaries.
14
15 Last time we checked, PuTTY built with vanilla VC7, or VC6 with
16 the Platform SDK.
17
18 (We've also had one report of success building with the
19 OpenWatcom compiler -- www.openwatcom.org -- using Makefile.vc
20 with `wmake -ms -f makefile.vc' and NO_MULTIMON, although we
21 haven't tried this ourselves.)
22
23 - Inside the windows/MSVC subdirectory are MS Visual Studio project
24 files for doing GUI-based builds of the various PuTTY utilities.
25 These have been tested on Visual Studio 6.
26
27 You should be able to build each PuTTY utility by loading the
28 corresponding .dsp file in Visual Studio. For example,
29 MSVC/putty/putty.dsp builds PuTTY itself, MSVC/plink/plink.dsp
30 builds Plink, and so on.
31
32 - windows/Makefile.bor is for the Borland C compiler. Type `make -f
33 Makefile.bor' while in the `windows' subdirectory to build all
34 the PuTTY binaries.
35
36 - windows/Makefile.cyg is for Cygwin / mingw32 installations. Type
37 `make -f Makefile.cyg' while in the `windows' subdirectory to
38 build all the PuTTY binaries. Note that by default the multiple
39 monitor support is excluded from the Cygwin build, since at the
40 time of writing Cygwin doesn't include the necessary headers.
41
42 - windows/Makefile.lcc is for lcc-win32. Type `make -f
43 Makefile.lcc' while in the `windows' subdirectory. (You will
44 probably need to specify COMPAT=-DNO_MULTIMON.)
45
46 - Inside the windows/DEVCPP subdirectory are Dev-C++ project
47 files for doing GUI-based builds of the various PuTTY utilities.
48
49 For building on Unix:
50
51 - unix/configure is for Unix and GTK. If you don't have GTK, you
52 should still be able to build the command-line utilities (PSCP,
53 PSFTP, Plink, PuTTYgen) using this script. To use it, change
54 into the `unix' subdirectory, run `./configure' and then `make'.
55
56 Note that Unix PuTTY has mostly only been tested on Linux so far;
57 portability problems such as BSD-style ptys or different header file
58 requirements are expected.
59
60 - unix/Makefile.gtk is for non-autoconfigured builds. This makefile
61 expects you to change into the `unix' subdirectory, then run `make
62 -f Makefile.gtk'.
63
64 - For the graphical utilities, Gtk+-1.2 is required. Gtk+-2.0 is not
65 yet supported.
66
67 - Both Unix Makefiles have an `install' target. Note that by default
68 it tries to install `man' pages, which you may need to have built
69 using Halibut first -- see below.
70
71 All of the Makefiles are generated automatically from the file
72 `Recipe' by the Perl script `mkfiles.pl'. Additions and corrections
73 to Recipe and the mkfiles.pl are much more useful than additions and
74 corrections to the alternative Makefiles themselves.
75
76 The Unix `configure' script and its various requirements are generated
77 by the shell script `mkauto.sh', which requires GNU Autoconf, GNU
78 Automake, and Gtk; if you've got the source from Subversion rather
79 than using one of our source snapshots, you'll need to run this
80 yourself.
81
82 Documentation (in various formats including Windows Help and Unix
83 `man' pages) is built from the Halibut (`.but') files in the `doc'
84 subdirectory using `doc/Makefile'. If you aren't using one of our
85 source snapshots, you'll need to do this yourself. Halibut can be
86 found at <http://www.chiark.greenend.org.uk/~sgtatham/halibut/>.
87
88 The PuTTY home web site is
89
90 http://www.chiark.greenend.org.uk/~sgtatham/putty/
91
92 If you want to send bug reports or feature requests, please read the
93 Feedback section of the web site before doing so. Sending one-line
94 reports saying `it doesn't work' will waste your time as much as
95 ours.
96
97 See the file LICENCE for the licence conditions.