summaryrefslogtreecommitdiff
path: root/tools/nitrogfx
diff options
context:
space:
mode:
authorshinyquagsire23 <mtinc2@gmail.com>2021-11-05 19:58:55 -0700
committershinyquagsire23 <mtinc2@gmail.com>2021-11-05 19:58:55 -0700
commitba7202457fec51d31da4d23a1840813952f30f31 (patch)
tree95cd38dba1187d007a51dca7f455d7b6541d5110 /tools/nitrogfx
parent1b75688d9a3cd9828f556e7c68bc65bb0268a68f (diff)
Update build scripts for MacOS Monterey; Use pkg-config on all platforms; MacOS no longer needs static libc++fs; Use gsed on MacOS
Diffstat (limited to 'tools/nitrogfx')
-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