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

63 Коммитов

Автор SHA1 Сообщение Дата
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
Ben Harris ee01ff5731 The current version of SC generates warnings for unused parameters just
like MrC.  Turn them off, since they're clearly silly.

[originally from svn r2370]
2002-12-28 22:17:51 +00:00
Ben Harris 93f12a008d Use the Unicode Converter to convert from Unicode to the display encoding
if it's available.  Linking against the static Unicode Converter library
costs us about 30k on Classic 68K, which I can live with.

Because the default fallback converter can generate multiple output
characters for a single input character, we provide our own fallback that
doesn't.  It converts everything to '?' instead.

[originally from svn r2315]
2002-12-13 00:02:48 +00:00
Ben Harris 26fcf5f991 Add support for generating MPW Makefiles. This makes the following changes:
* splitline gets support for changing the continuation character.
* deps returns a data structure for the output routine to format as
  appropriate.
* There's a new program type, [M], for Macintosh.
* There's a new backend to output mac/Makefile.mpw.

[originally from svn r2272]
2002-12-02 21:01:11 +00:00
Jacob Nevins 4c24598b57 Add mac/ to include paths after discussion with bjh21
[originally from svn r2229]
2002-11-19 19:36:14 +00:00
Simon Tatham 7a85e73e57 Borland makefile needs to define _WINDOWS; apparently this makefile
hasn't worked since the Unix port started and nobody has noticed
until now :-)

[originally from svn r2198]
2002-11-07 19:37:36 +00:00
Simon Tatham 0e6c1fffd9 Introduce program category U, for non-GTK-requiring Unix apps. Plink
doesn't need to be linked with libgtk, libgdk, libX11 etc!

[originally from svn r2179]
2002-11-01 18:51:55 +00:00
Simon Tatham 28a75f8b84 RJK's `make install' patch for the Unix makefile.
[originally from svn r2163]
2002-10-30 18:17:56 +00:00
Simon Tatham 78c69239f1 Preparatory work before attempting a Unix port of plink: mkfiles.pl
needs to be able to handle separate Recipe entries for the same
program with different types (plink [C] and plink [X] for example,
with different object lists).

[originally from svn r2159]
2002-10-30 17:56:05 +00:00
Simon Tatham 60935859d5 Richard's patch to fix `make clean' under Unix.
[originally from svn r2063]
2002-10-15 14:58:02 +00:00
Simon Tatham 6d0e9b205d First phase of porting. pterm now compiles and runs under Linux+gtk.
The current pty.c backend is temporarily a loopback device for
terminal emulator testing, the display handling is only just enough
to show that terminal.c is functioning, the keyboard handling is
laughable, and most features are absent. Next step: bring output and
input up to a plausibly working state, and put a real pty on the
back to create a vaguely usable prototype. Oh, and a scrollbar would
be nice too.
In _theory_ the Windows builds should still work fine after this...

[originally from svn r2010]
2002-10-09 18:09:42 +00:00
Simon Tatham 268213483c Oops. Dirsep in Makefile.cyg should be / not \.
[originally from svn r2004]
2002-10-07 22:21:28 +00:00
Simon Tatham 64c52b0d30 Begin destabilisation in the wake of 0.53! This checkin contains the
beginning of a Unix port. It's nowhere near done, and currently it
won't even compile on Unix. But this represents the start of the
process of separating out platform-specific code, and also contains
the mkfiles.pl changes required to support a Unix makefile and a
non-flat source tree.

[originally from svn r1993]
2002-10-07 16:45:23 +00:00
Simon Tatham 689fcb5106 Add -w-pia to the Borland makefile (suppress warnings about
assignment statements used as truth values).

[originally from svn r1605]
2002-03-27 20:08:12 +00:00
Simon Tatham a011a5edba Completely revamped mkfiles.pl which incorporates dependency
analysis (for both .c and .rc files). Generates the VC++ makefile as
well as the other two; the authoritative source is now the new file
`Recipe' rather than any particular Makefile. Note that `Makefile'
is still here as a relic of the old way until we stop the nightly
builds using it, but it'll be gone soon.

[originally from svn r1592]
2002-03-16 15:49:28 +00:00
Simon Tatham e4712f729d Bah. Add winspool.lib to libraries list. Maybe _now_ the nightly
builds will start working again :-/

[originally from svn r1587]
2002-03-11 10:38:30 +00:00
Simon Tatham 0d18907a1d `make clean' in the Borland makefile should ignore error returns
from the delete commands in case nothing of a particular type needs
to be cleaned up.

[originally from svn r1498]
2001-12-15 14:29:03 +00:00
Simon Tatham 05226e43a9 Wez Furlong's patch to tidy up full-screen mode: make it
multi-monitor aware and make the scrollbar separately configurable
in and out of full-screen mode. Also (not Wez's patch, this bit) fix
the case where the user reconfigures _while_ the window is
full-screen, and disables full-screening. (In this case the window
should return gracefully to normal, rather than losing all its title
bars and getting confused.)

[originally from svn r1310]
2001-10-17 21:21:03 +00:00
Simon Tatham abee2a59ab Cygwin build fixes: update the dependencies, add -DNO_SECURITY to
the Cygwin CFLAGS, and declare `struct ssh_channel' in ssh.h to
prevent gcc warning about scope-confined-to-parameter-list.

[originally from svn r1268]
2001-09-15 14:58:26 +00:00
Jacob Nevins 913b9deeec Updated Makefile.cyg for Glenn Maynard's IME patch.
[originally from svn r1186]
2001-08-15 19:41:14 +00:00