From 3290cec976c52342de0d7795e59dab7ed920f31d Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 5 Jun 2008 17:06:39 +0000 Subject: [PATCH] Add an include statement to Makefile.gtk that imports if present a file called Makefile.local. This means that if you're compiling on a platform that needs COMPAT definitions, you can put them in a local file and not have to type them on the command line every time. git-svn-id: svn://svn.tartarus.org/sgt/putty@8045 cda61777-01e9-0310-a592-d414129be87e --- mkfiles.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkfiles.pl b/mkfiles.pl index f0a57570..d4b2bd1a 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -931,6 +931,8 @@ if (defined $makefiles{'gtk'}) { "# 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". + "-include Makefile.local\n". + "\n". &splitline("CFLAGS = -O2 -Wall -Werror -g " . (join " ", map {"-I$dirpfx$_"} @srcdirs) . " `\$(GTK_CONFIG) --cflags`"). -- 2.11.0