From 3333fb49ff1e2993d8f895fe46a2b407866140fa Mon Sep 17 00:00:00 2001 From: Christian C Date: Tue, 4 Mar 2025 11:44:08 -0800 Subject: Easier pkgconf change --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 26c61b1..17c6d49 100644 --- a/Makefile +++ b/Makefile @@ -10,12 +10,14 @@ OBJS=$(OBJS_sub:.c=.o) OBJ_DIRS_sub=$(shell find $(SRC_DIR) -type d) OBJ_DIRS=$(subst $(SRC_DIR),$(OBJ_DIR),$(OBJ_DIRS_sub)) +PKGCONF=pkg-config + CFLAGS= -CFLAGS+=$(shell pkgconf --cflags $(PKGS)) +CFLAGS+=$(shell $(PKGCONF) --cflags $(PKGS)) CFLAGS+=-I$(INC_DIR) LDFLAGS= -LDFLAGS+=$(shell pkgconf --libs $(PKGS)) +LDFLAGS+=$(shell $(PKGCONF) --libs $(PKGS)) default: clean build -- cgit v1.2.1