Skip to content

Commit

Permalink
Rename Makefile.cyg to Makefile.mgw.
Browse files Browse the repository at this point in the history
It's really only useful with MinGW rather than a Cygwin toolchain these
days, as recent versions of the latter insist against linking with the
Cygwin DLL.

(I think it may no longer be possible to build with Cygwin out of the
box at all these days, but I'm not going to say so without having
actually checked that's the case. Settle for listing MinGW first in
various comments and docs.)
  • Loading branch information
jtn20 committed Apr 10, 2016
1 parent 145ecf6 commit 371c68e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/*.td2
/*.map
/Makefile.bor
/Makefile.cyg
/Makefile.mgw
/Makefile.vc
/Makefile.lcc
/MSVC
Expand Down Expand Up @@ -128,7 +128,7 @@
/windows/*.td2
/windows/*.map
/windows/Makefile.bor
/windows/Makefile.cyg
/windows/Makefile.mgw
/windows/Makefile.vc
/windows/Makefile.lcc
/windows/MSVC
Expand Down
2 changes: 1 addition & 1 deletion Buildscr.cv
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ enddelegate
# Windows scanner for download).
delegate covscan32wine
in putty do tar xzvf cov-int.tar.gz
in putty/windows do cov-build --dir ../cov-int make -f Makefile.cyg CC=winegcc RC=wrc XFLAGS=-DCOVERITY
in putty/windows do cov-build --dir ../cov-int make -f Makefile.mgw CC=winegcc RC=wrc XFLAGS=-DCOVERITY
in putty do tar czvf cov-int.tar.gz cov-int
return putty/cov-int.tar.gz
enddelegate
Expand Down
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ For building on Windows:
Makefile.bor' while in the `windows' subdirectory to build all
the PuTTY binaries.

- windows/Makefile.cyg is for Cygwin / MinGW installations. Type
`make -f Makefile.cyg' while in the `windows' subdirectory to
- windows/Makefile.mgw is for MinGW / Cygwin installations. Type
`make -f Makefile.mgw' while in the `windows' subdirectory to
build all the PuTTY binaries.

You'll probably need quite a recent version of the w32api package.
Expand All @@ -50,7 +50,7 @@ For building on Windows:
- Inside the windows/DEVCPP subdirectory are Dev-C++ project
files for doing GUI-based builds of the various PuTTY utilities.

The PuTTY team actively use Makefile.vc (with VC7) and Makefile.cyg
The PuTTY team actively use Makefile.vc (with VC7) and Makefile.mgw
(with mingw32), so we'll probably notice problems with those
toolchains fairly quickly. Please report any problems with the other
toolchains mentioned above.
Expand Down Expand Up @@ -99,7 +99,7 @@ For building on Unix:

- It's also possible to build the Windows version of PuTTY to run
on Unix by using Winelib. To do this, change to the `windows'
directory and run `make -f Makefile.cyg CC=winegcc RC=wrc'.
directory and run `make -f Makefile.mgw CC=winegcc RC=wrc'.

All of the Makefiles are generated automatically from the file
`Recipe' by the Perl script `mkfiles.pl' (except for the Unix one,
Expand Down
6 changes: 3 additions & 3 deletions Recipe
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Locations and types of output Makefiles.
!makefile vc windows/Makefile.vc
!makefile vcproj windows/MSVC
!makefile cygwin windows/Makefile.cyg
!makefile cygwin windows/Makefile.mgw
!makefile borland windows/Makefile.bor
!makefile lcc windows/Makefile.lcc
!makefile gtk unix/Makefile.gtk
Expand Down Expand Up @@ -46,8 +46,8 @@
#
# - COMPAT=/DNO_SECURITY (Windows only)
# Disables Pageant's use of <aclapi.h>, which is not available
# with some development environments (such as older versions of
# the Cygwin/mingw GNU toolchain). This means that Pageant
# with some development environments (such as very old versions
# of the mingw/Cygwin GNU toolchain). This means that Pageant
# won't care about the local user ID of processes accessing it; a
# version of Pageant built with this option will therefore refuse
# to run under NT-series OSes on security grounds (although it
Expand Down
4 changes: 2 additions & 2 deletions mkfiles.pl
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ sub manpages {
if (defined $makefiles{'cygwin'}) {
$dirpfx = &dirpfx($makefiles{'cygwin'}, "/");

##-- CygWin makefile
##-- MinGW/CygWin makefile (called 'cygwin' for historical reasons)
open OUT, ">$makefiles{'cygwin'}"; select OUT;
print
"# Makefile for $project_name under Cygwin, MinGW, or Winelib.\n".
"# Makefile for $project_name under MinGW, Cygwin, or Winelib.\n".
"#\n# This file was created by `mkfiles.pl' from the `Recipe' file.\n".
"# DO NOT EDIT THIS FILE DIRECTLY; edit Recipe or mkfiles.pl instead.\n";
# gcc command line option is -D not /D
Expand Down
2 changes: 1 addition & 1 deletion windows/winshare.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifdef COVERITY
/*
* The hack I use to build for Coverity scanning, using winegcc and
* Makefile.cyg, didn't provide some defines in wincrypt.h last time I
* Makefile.mgw, didn't provide some defines in wincrypt.h last time I
* looked. Therefore, define them myself here, but enclosed in #ifdef
* COVERITY to ensure I don't make up random nonsense values for any
* real build.
Expand Down

0 comments on commit 371c68e

Please sign in to comment.