From: Simon Tatham Date: Thu, 8 Jan 2009 18:19:52 +0000 (+0000) Subject: Colin also suggests that we can replace the backticks in the GTK X-Git-Tag: r8855-g4f798d~77 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=439f6a57e67d2ff80e4ef34d323f7de158892045;p=PuTTY_svn.git Colin also suggests that we can replace the backticks in the GTK makefile with make's own $(shell ...) function, which means that gtk-config and krb5-config and so on only get run once per make invocation instead of once per gcc invocation. git-svn-id: http://svn.tartarus.org/sgt/putty@8400 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/mkfiles.pl b/mkfiles.pl index 77836b6d..0bbd5666 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -939,14 +939,14 @@ if (defined $makefiles{'gtk'}) { "\n". &splitline("CFLAGS = -O2 -Wall -Werror -g " . (join " ", map {"-I$dirpfx$_"} @srcdirs) . - " `\$(GTK_CONFIG) --cflags`"). + " \$(shell \$(GTK_CONFIG) --cflags)"). " -D _FILE_OFFSET_BITS=64\n". - "XLDFLAGS = \$(LDFLAGS) `\$(GTK_CONFIG) --libs`\n". + "XLDFLAGS = \$(LDFLAGS) \$(shell \$(GTK_CONFIG) --libs)\n". "ULDFLAGS = \$(LDFLAGS)\n". "ifeq (,\$(findstring NO_GSSAPI,\$(COMPAT)))\n". - "CFLAGS+= `\$(KRB5CONFIG) --cflags gssapi`\n". - "XLDFLAGS+= `\$(KRB5CONFIG) --libs gssapi`\n". - "ULDFLAGS = `\$(KRB5CONFIG) --libs gssapi`\n". + "CFLAGS+= \$(shell \$(KRB5CONFIG) --cflags gssapi)\n". + "XLDFLAGS+= \$(shell \$(KRB5CONFIG) --libs gssapi)\n". + "ULDFLAGS = \$(shell \$(KRB5CONFIG) --libs gssapi)\n". "endif\n". "INSTALL=install\n". "INSTALL_PROGRAM=\$(INSTALL)\n".