Update Makefile

This commit is contained in:
Kellan Clark
2023-06-19 00:07:58 -04:00
committed by GitHub
parent c565553505
commit 2e97a29c9f

View File

@@ -1,14 +1,10 @@
CC = gcc
HAVE_LIBPNG := $(shell pkg-config libpng; echo $?)
HAVE_ZLIB := $(shell pkg-config zlib; echo $?)
ifeq ($(HAVE_LIBPNG),1)
$(error No package 'libpng' found)
endif
ifeq ($(HAVE_ZLIB),1)
$(error No package 'zlib' found)
endif
CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK $(shell pkg-config --cflags libpng zlib)