summaryrefslogtreecommitdiff
path: root/tools/nitrogfx/Makefile
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2021-11-06 17:41:16 -0400
committerGitHub <noreply@github.com>2021-11-06 17:41:16 -0400
commit48f301e353a728c328f6406a8c18f1da8d9de331 (patch)
tree95cd38dba1187d007a51dca7f455d7b6541d5110 /tools/nitrogfx/Makefile
parent05ded46ab7f556956a2eee2411a8d2968b7e8ad6 (diff)
parentba7202457fec51d31da4d23a1840813952f30f31 (diff)
Merge pull request #470 from shinyquagsire23/macos-build
Update build scripts and instructions for MacOS Monterey
Diffstat (limited to 'tools/nitrogfx/Makefile')
-rw-r--r--tools/nitrogfx/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nitrogfx/Makefile b/tools/nitrogfx/Makefile
index 18ecdbba..16b2632d 100644
--- a/tools/nitrogfx/Makefile
+++ b/tools/nitrogfx/Makefile
@@ -1,8 +1,8 @@
CC = gcc
-CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK -D_CRT_SECURE_NO_WARNINGS
+CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK $(shell pkg-config --cflags libpng)
-LIBS = -lpng -lz
+LIBS = $(shell pkg-config --libs libpng)
SRCS = main.c convert_png.c gfx.c jasc_pal.c lz.c rl.c util.c font.c huff.c json.c cJSON.c