From b2c1e04bf49fa89aea7d79a6ecf509f2d97abeb4 Mon Sep 17 00:00:00 2001 From: Ade Novid Date: Fri, 7 Feb 2025 00:13:25 +0700 Subject: [PATCH] fix(fontconvert): use `pkg-config` --- fontconvert/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fontconvert/Makefile b/fontconvert/Makefile index 47f5a0e1..8cb89cb8 100644 --- a/fontconvert/Makefile +++ b/fontconvert/Makefile @@ -1,8 +1,8 @@ all: fontconvert CC = gcc -CFLAGS = -Wall -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/include -LIBS = -lfreetype +CFLAGS = -Wall $(shell pkg-config --cflags freetype2) +LIBS = $(shell pkg-config --libs freetype2) fontconvert: fontconvert.c $(CC) $(CFLAGS) $< $(LIBS) -o $@