diff options
Diffstat (limited to 'tools/nitrogfx/Makefile')
-rw-r--r-- | tools/nitrogfx/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/nitrogfx/Makefile b/tools/nitrogfx/Makefile index 16b2632d..2ed6cf1e 100644 --- a/tools/nitrogfx/Makefile +++ b/tools/nitrogfx/Makefile @@ -1,5 +1,11 @@ CC = gcc +HAVE_LIBPNG := $(shell pkg-config libpng; echo $?) + +ifeq ($(HAVE_LIBPNG),1) +$(error No package 'libpng' found) +endif + CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK $(shell pkg-config --cflags libpng) LIBS = $(shell pkg-config --libs libpng) |