From f8531ed41003759e81a42d94dc410e9f725f1532 Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Fri, 16 Dec 2016 23:23:37 -0700 Subject: [PATCH] Add a thin wrapper makefile for GNU Make. GNU Make 3.x doesn't support the "!=" syntax for shell assignment, although 4.x does, BSD Makes do, and it has been submitted to POSIX for possible inclusion in the standard. Unfortunately, GNU Make 3.x is still in common use, so provide an alternative makefile (GNU Make reads "GNUmakefile" instead of "Makefile" by default) that sets the variables and then reuses the rest of the default Makefile. --- GNUMakefile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 GNUMakefile diff --git a/GNUMakefile b/GNUMakefile new file mode 100644 index 00000000..9650e67f --- /dev/null +++ b/GNUMakefile @@ -0,0 +1,6 @@ +# GNU Make 3.x doesn't support the "!=" shell syntax, so here's an alternative + +PKG_CONFIG = pkg-config +PNGFLAGS = $(shell ${PKG_CONFIG} --cflags libpng) + +include Makefile