Граф коммитов

82 Коммитов

Автор SHA1 Сообщение Дата
Jacob Nevins 4d48ba62e8 `win-versioninfo': all builds of all Windows binaries now contain
a VERSIONINFO resource. The versioning scheme is described in
windows/version.rc2.

Some .rc files are now #included in others. In order to keep MSVC
project files working, these have been renamed to .rc2; there may exist
a better solution.

(This checkin also includes the documentation tweak missing from r6367.)

Testing performed:
 - MinGW (cross-compiler): works
 - VC nmake: works (tested with VC6)
 - VC project files: builds with VERSIONINFO resource (no VER variable though)
 - Borland: an old version of this patch was tested with it and more or
   less worked, except that some of the VERSIONINFO strings were apparently
   not terminated properly. Not attempted to work around this.
 - LCC: not tested. Some fixes are in there from the last time we tried
   this, but then the build ultimately failed and I haven't tried this
   since that was fixed.
 - Dev-C++: untested. (Haven't done anything special.)
 - Unix Gtk/autoconf Makefiles work as before.

[originally from svn r6374]
[r6367 == f86ad059db]
[this svn revision also touched putty-wishlist]
2005-10-04 14:13:28 +00:00
Ben Harris c1c27e9fb8 Add support for generating project files for use with Dev-C++, contributed
by Florian Gaab.

[originally from svn r6201]
2005-08-22 20:37:13 +00:00
Ben Harris 0227bfdbc7 Add a mechanism for using autoconf to detect the quirks of Unix systems
rather than relying on the user to edit the Makefile.  Makefile.gtk
still works as well as it ever did, but now we get a Makefile.in alongside
it.  mkunxarc.sh now relies on autoconf and friends to build the configure
script for the Unix source distribution.

[originally from svn r5673]
2005-04-25 15:55:06 +00:00
Jacob Nevins 492b3933f8 Retire MINGW32_FIX. It was a fix for a blatant bug in MinGW's windres, which
was fixed in CVS in 2000 (I think); and we now depend on MinGW much more
recent than that for various other reasons. I've tested with my current
MinGW (around 2.0.0 vintage) and the original symptoms (dodgy characters in
edit boxes) don't appear to show up.

[originally from svn r5491]
2005-03-11 15:52:59 +00:00
Jacob Nevins 1b3b065afc Allow mkfiles.pl to put multiple verbatim sections in a Makefile, and use
one of these for the MacOSX CFLAGS tweak.

[originally from svn r5404]
2005-02-26 17:30:41 +00:00
Jacob Nevins a519e8edfc Add RT_MANIFEST arguments to dependencies for Windows resource objects.
[originally from svn r5393]
2005-02-24 22:45:50 +00:00
Simon Tatham dc52b43cc3 Add plain-Unix binaries to the `make clean' list in the OS X makefile.
[originally from svn r5345]
2005-02-18 18:35:30 +00:00
Simon Tatham 46bfde32e8 Initial checkin of a native Mac OS X port, sharing most of its code
with the Unix port and layering a Cocoa GUI on top. The basics all
work: there's a configuration panel and a terminal window, the
timing interface works and the select interface functions. The same
application can run both SSH (or other network) connections and
local pty sessions, and multiple sessions in the same process are
fully supported.

However, it's horribly unfinished in a wide variety of other ways;
anyone interested is invited to read README.OSX and wince at the
length and content of its `unfinished' list.

[originally from svn r5308]
2005-02-15 21:45:50 +00:00
Ben Harris 6b1afc2a68 FWHACK has been dead for years. Remove it from the Makefiles.
[originally from svn r5113]
2005-01-15 18:30:05 +00:00
Owen Dunn 4be66f3a59 Throw away "./" in findfile so that the Mac makefile has valid paths.
[originally from svn r5111]
2005-01-15 17:16:48 +00:00
Ben Harris 2a37818026 Don't use GNUish pattern rules in the Unix Makefile, since they're not
supported by non-GNU makes.  This allows the standard Solaris /usr/ccs/bin/make
to handle that Makefile.

[originally from svn r5108]
2005-01-14 12:26:38 +00:00
Simon Tatham cb45b9cc25 Now that we have Subversion's file renaming ability, it's time at
long last to move all the Windows-specific source files down into a
`windows' subdirectory. Only platform-specific files remain at the
top level. With any luck this will act as a hint to anyone still
contemplating sending us a Windows-centric patch...

[originally from svn r4792]
2004-11-16 22:14:56 +00:00
Jacob Nevins 847f86892d Typos in Borland Makefile pointed out by Arnaud Desitter
[originally from svn r4256]
2004-05-24 17:12:42 +00:00
Simon Tatham 1e13fdc572 More portability fixes.
[originally from svn r4137]
2004-04-25 09:26:52 +00:00
Simon Tatham 7bd6bec8e4 Make mkfiles.pl less tied to PuTTY in particular, by inventing new
directives that allow me to move some of the PuTTY-specific Makefile
fragments into Recipe. Not complete yet, but ought to be enough for
me to at least _try_ using mkfiles.pl in another project.

[originally from svn r4136]
2004-04-25 09:04:38 +00:00
Simon Tatham b433ee662e Oh yes, and the Unix Makefile needs to know that as well.
[originally from svn r3969]
2004-03-24 19:51:59 +00:00
Jacob Nevins a1ba4be490 Add .map files to Cygwin "clean" target
[originally from svn r3862]
2004-02-13 00:41:44 +00:00
Jacob Nevins 8b2e775547 Makefile.cyg now generates a link map.
[originally from svn r3861]
2004-02-13 00:40:45 +00:00
Simon Tatham ade0cb3d84 Added a wrinkle to the version.c build in the Unix makefile, which
will validate an md5sums manifest and if all md5sums match will use
a version number provided in a file. This should allow me to produce
a Unix release source archive with the property that when unpacked
and built it will produce binaries advertising themselves as
`Release X.YZ', but as soon as the user starts fiddling with the
sources it will revert to `Unidentified build' (though of course the
user can still _explicitly_ ask for a release tag, and in fact this
will override the default if any default is specified).

[originally from svn r3818]
2004-02-07 18:10:54 +00:00
Simon Tatham f6adc8a9e1 Alexey Savelyev's mkfiles.pl patch to support lcc-win32. This has
caused a small amount of extra inconvenience at the tops of .rc
files, but it's been positive overall since lcc has managed to point
out some pedantic errors (typically static/extern mismatches between
function prototypes and definitions) which everything else missed.

[originally from svn r3744]
2004-01-20 20:35:27 +00:00
Simon Tatham fb8d264f28 Joe Yates's patch to make mkfiles.pl generate Visual Studio project
files as well as an nmake makefile. Needed line-end tweakery in
order to be able to generate usable project files when run on Unix,
but other than that appears fine. Ooh!

[originally from svn r3721]
2004-01-17 13:48:40 +00:00
Simon Tatham b601727068 So _that's_ why mkfiles.pl was running so slowly on my Windows box!
&findfile() now caches its results. At least one full order of
magnitude speedup when running on an SMB-mounted volume. Phew.

[originally from svn r3720]
2004-01-17 13:24:59 +00:00
Ben Harris f68c785aa4 Add support for a DESTDIR variable in the Unix makefile to set the root of the
installation tree (for building packages etc).

[originally from svn r3433]
2003-09-01 21:27:36 +00:00
Ben Harris f97b7768ab Remove -DNO_SECURITY from the cygwin build, since <aclapi.h> has been
available in cygwin for a year and a half.
Pointed out by Bruno Kozlowski.

[originally from svn r3282]
2003-06-21 19:34:36 +00:00
Simon Tatham 041dcfd83d Unix makefile now uses -O2, which massively cuts down key exchange
time. This gives rise to a whole bunch of spare warnings, one or two
of which might have been actual bugs; now all resolved.

[originally from svn r3134]
2003-04-23 13:48:09 +00:00
Simon Tatham 54d5f41c95 I'm sick of having to type (cd ..; perl mkfiles.pl) when I'm working
on Unix. So now mkfiles.pl will look in .. as well as . when
searching for Recipe, so I can run `perl ../mkfiles.pl' and it will
Just Work.

[originally from svn r3016]
2003-03-29 17:07:31 +00:00
Simon Tatham 2ddf9f54de Add some parentheses for general robustness. (In particular I just
tried to run mkfiles.pl on Perl 5.005_03 and it didn't work without
them.)

[originally from svn r2885]
2003-02-24 22:39:14 +00:00
Ben Harris 3543ba3ec9 Set the executable fragment name (in CFM builds) to the name of the target
pgram, rather than to "PuTTY" unconditionally.

[originally from svn r2883]
2003-02-23 13:42:34 +00:00
Ben Harris 160277515b I think the Carbon build now works well enough to be worth turning on by
default.  It's not particularly useful, but it runs.

[originally from svn r2882]
2003-02-23 13:34:14 +00:00
Ben Harris fb90fa8650 Change some of the blocks of cut&pasted code into loops.
[originally from svn r2873]
2003-02-20 22:22:14 +00:00
Ben Harris b5133bc164 Ask for traceback tables in PowerPC objects, since that should make
tracking down crashes easier.

[originally from svn r2872]
2003-02-20 00:40:39 +00:00
Ben Harris 60c9d7bae3 Clean up Carbon build procedures somewhat. I still don't have anything that
actually works, but I think I'm getting closer.

[originally from svn r2810]
2003-02-07 01:33:24 +00:00
Ben Harris 60b6419de5 Add support for using Navigation Services to open saved sessions.
Support for saving sessions using Navigation Services will come later.

[originally from svn r2779]
2003-02-02 15:59:00 +00:00
Ben Harris fc17465c33 Add some glue to allow building a Carbon version of PuTTY. It won't
work, but it's nice to have the infrastructure in place.

[originally from svn r2772]
2003-02-01 22:20:53 +00:00
Ben Harris 3e09c5afa1 Enable -Werror in GTK builds (we already have -Wall, so more GCCisms aren't
_that_ evil).

[originally from svn r2667]
2003-01-20 20:15:28 +00:00
Ben Harris ff0d8bae10 Clear the "Inited" bit when we finish building each executable, in a bid
to get the Finder to look at the new 'BNDL' resource.

[originally from svn r2637]
2003-01-18 12:19:04 +00:00
Ben Harris f3eff8b5de Use memset() rather than OTMemzero(), and hence remove the need to weak link
against OTUtilityLib.

[originally from svn r2550]
2003-01-12 01:37:24 +00:00
Ben Harris f9300b0011 Initial import of Owen's OpenTransport interface. It doesn't work yet, but
it does compile and link.

[originally from svn r2547]
2003-01-11 23:33:57 +00:00
Ben Harris cdec9c7870 Switching from -opt space to -opt time on 68K Macs only loses us about 2K
of disc space, and we need all the speed we can get, so do that.

[originally from svn r2517]
2003-01-09 19:24:02 +00:00
Ben Harris 63543733f6 The CFM-68K build isn't working at the moment (we blow past its global data
limit what with libcharset and the crypto stuff), so don't include it in
"all".

[originally from svn r2501]
2003-01-08 22:48:57 +00:00
Ben Harris 561029bfdf Correct handling of Mac OS 8.5 Window Manager and Control Manager. The new
functions turn out to be available only to PowerPC applications, through
WindowsLib and ControlsLib respectively, so we weak-link against those in
the obvious way.

[originally from svn r2441]
2003-01-04 00:13:18 +00:00
Ben Harris 720c09f576 Add "-notOnce" to the compiler options on the Mac to stop the compiler
assuming that duplicate #includes of the same file are idempotent.  I mean,
it's not even true for the standard headers (think <assert.h>), and
certainly isn't true here.

[originally from svn r2400]
2002-12-31 22:40:38 +00:00
Simon Tatham ad2bbc52a4 First draft of Unicode support in pterm. It's pretty complete: it
does UTF-8 copy and paste (falling back to normal strings if
necessary), it understands X font encodings and translates things
accordingly so that if you have a Unicode font you can ask for
virtually any single-byte encoding and get it (Mac-Roman pterm,
anyone?), and so on. There's work left to be done (wide fonts for
CJK spring to mind), but I reckon this is a pretty good start.

[originally from svn r2395]
2002-12-31 12:20:34 +00:00
Simon Tatham 860164958a Dimitrie Paun's patch for Winelib support. Actually does nothing
except add a couple of commented-out lines to Makefile.cyg; the
Winelib user must uncomment them to do the compilation.

[originally from svn r2393]
2002-12-31 10:04:35 +00:00
Ben Harris 47f459bb5f Add support for compiling 'vers' resources into Mac applications. This is
needlessly complex because Rez's preprocessor doesn't do either ANSI or K&R
stringification, and the MPW Shell isn't much good as shells go.

Also make _all_ the Mac executables depend on reources, not just the
Classic 68K one.

[originally from svn r2389]
2002-12-30 23:14:11 +00:00
Ben Harris 672404dc4e Finally add support for building Mac resource forks. This adds a new kind
of compiled resource file, .rsrc, which is built from .r, and adds mechanisms
to the MPW makefile generator to handle this.

[originally from svn r2385]
2002-12-30 14:20:25 +00:00
Ben Harris f5578ea873 More cleanup to Mac build procedures, notably:
- Remove an unused library from the CFM-68K link line.
 - Set the fragment name in CFM builds to "PuTTY".
 - Set the hasBundle and isShared bits on freshly-created applications.

[originally from svn r2383]
2002-12-30 13:43:19 +00:00
Ben Harris b838180aa0 Add support for building a CFM-68K version of PuTTY, which is rather smaller
than the Classic 68K version.  This requires installing more bits of the
Text Encoding Converter SDK, since Apple seem to have forgotten to put _any_
68k bits for it, either CFM or Classic, in Universal Interfaces.

Also don't bother linking against libraries we don't seem to need.

[originally from svn r2379]
2002-12-29 19:01:33 +00:00
Ben Harris 9b45be7987 Substantial overhaul of Mac build system. We now have working PowerPC builds,
and optimisation (for size) enabled.

[originally from svn r2378]
2002-12-29 15:44:15 +00:00
Ben Harris 09dc635ba3 Use the "far" versions of all libraries for which they seem to exist.
This should make things less likely to break as the code gets bigger.

[originally from svn r2375]
2002-12-29 13:41:38 +00:00