aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@local.lan>2025-03-04 11:44:08 -0800
committerChristian Cunningham <cc@local.lan>2025-03-04 11:44:08 -0800
commit645a80a15bde0941af9021a87f305518e24c269d (patch)
tree387f4b392f5b69565642b78d8038b9e6aa189ef8
parent2b402d17676ef85a45cf4f8a05660e62443bbb9e (diff)
Easier pkgconf change
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
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