shithub: rgbds

Download patch

ref: f8531ed41003759e81a42d94dc410e9f725f1532
parent: 0a8401741d0e42c8134701ca173a979ca040944b
author: Anthony J. Bentley <[email protected]>
date: Fri Dec 16 18:23:37 EST 2016

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.

--- /dev/null
+++ b/GNUMakefile
@@ -1,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