From 349c545939b44a59a349c81de55759a900303739 Mon Sep 17 00:00:00 2001 From: Gamr13 <48205338+Gamr13@users.noreply.github.com> Date: Sun, 7 May 2023 21:11:15 +0100 Subject: [PATCH 1/2] Update Makefile --- tools/gbagfx/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/gbagfx/Makefile b/tools/gbagfx/Makefile index 0edb1579f..53fb61f44 100644 --- a/tools/gbagfx/Makefile +++ b/tools/gbagfx/Makefile @@ -1,8 +1,10 @@ CC = gcc CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O3 -flto -DPNG_SKIP_SETJMP_CHECK +CFLAGS += $(shell pkg-config --cflags libpng) LIBS = -lpng -lz +LDFLAGS += $(shell pkg-config --libs-only-L libpng) SRCS = main.c convert_png.c gfx.c jasc_pal.c lz.c rl.c util.c font.c huff.c From 9efcec167b91f049a7d1c01a34994b77f76d65b7 Mon Sep 17 00:00:00 2001 From: Gamr13 <48205338+Gamr13@users.noreply.github.com> Date: Sun, 7 May 2023 21:11:54 +0100 Subject: [PATCH 2/2] Update Makefile --- tools/rsfont/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/rsfont/Makefile b/tools/rsfont/Makefile index abe1cab51..55b2e8ab2 100644 --- a/tools/rsfont/Makefile +++ b/tools/rsfont/Makefile @@ -1,8 +1,10 @@ CC = gcc CFLAGS = -Wall -Wextra -Werror -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK +CFLAGS += $(shell pkg-config --cflags libpng) LIBS = -lpng -lz +LDFLAGS += $(shell pkg-config --libs-only-L libpng) SRCS = main.c convert_png.c util.c font.c