X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mkfiles.pl;h=3cc580cb95fb71628f99c1628121009d5b0715ea;hb=12e019bafc75cb441e965c63e15dfceeaf71ca1e;hp=e2bc3bbf8520f95bd6b1d57b07c9311c6669dea5;hpb=89f7c2c8cea98e17101d798956584b8cfff0c6b3;p=PuTTY.git diff --git a/mkfiles.pl b/mkfiles.pl index e2bc3bbf..3cc580cb 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -473,7 +473,7 @@ if (defined $makefiles{'borland'}) { "MAKEFILE = Makefile.bor\n". "\n". "# C compilation flags\n". - "CFLAGS = -D_WINDOWS -DWINVER=0x0401\n". + "CFLAGS = -D_WINDOWS -DWINVER=0x0500\n". "# Resource compilation flags\n". "RCFLAGS = -DNO_WINRESRC_H -DWIN32 -D_WIN32 -DWINVER=0x0401\n". "\n". @@ -576,7 +576,7 @@ if (defined $makefiles{'vc'}) { "# C compilation flags\n". "CFLAGS = /nologo /W3 /O1 " . (join " ", map {"-I$dirpfx$_"} @srcdirs) . - " /D_WINDOWS /D_WIN32_WINDOWS=0x401 /DWINVER=0x401\n". + " /D_WINDOWS /D_WIN32_WINDOWS=0x500 /DWINVER=0x500\n". "LFLAGS = /incremental:no /fixed\n". "RCFLAGS = -DWIN32 -D_WIN32 -DWINVER=0x0400\n". "\n". @@ -924,12 +924,18 @@ if (defined $makefiles{'gtk'}) { "# You can define this path to point at your tools if you need to\n". "# TOOLPATH = /opt/gcc/bin\n". "CC = \$(TOOLPATH)cc\n". + "# You can manually set this to `gtk-config' or `pkg-config gtk+-1.2'\n". + "# (depending on what works on your system) if you want to enforce\n". + "# building with GTK 1.2, or you can set it to `pkg-config gtk+-2.0'\n". + "# if you want to enforce 2.0. The default is to try 2.0 and fall back\n". + "# to 1.2 if it isn't found.\n". + "GTK_CONFIG = sh -c 'pkg-config gtk+-2.0 \$\$0 2>/dev/null || gtk-config \$\$0'\n". "\n". &splitline("CFLAGS = -O2 -Wall -Werror -g " . (join " ", map {"-I$dirpfx$_"} @srcdirs) . - " `gtk-config --cflags`"). + " `\$(GTK_CONFIG) --cflags`"). " -D _FILE_OFFSET_BITS=64\n". - "XLDFLAGS = `gtk-config --libs`\n". + "XLDFLAGS = `\$(GTK_CONFIG) --libs`\n". "ULDFLAGS =#\n". "INSTALL=install\n", "INSTALL_PROGRAM=\$(INSTALL)\n",