fix(fontconvert): use pkg-config

This commit is contained in:
Ade Novid committed 2025-02-07 00:13:25 +07:00
1 parent d472098789
commit b2c1e04bf4
1 file changed
+2 -2
+2 -2
View File
@@ -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 $@