mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
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.
This commit is contained in:
6
GNUMakefile
Normal file
6
GNUMakefile
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user