diff options
author | Christian C <cc@localhost> | 2025-03-04 11:44:08 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-04 11:44:08 -0800 |
commit | 3333fb49ff1e2993d8f895fe46a2b407866140fa (patch) | |
tree | 387f4b392f5b69565642b78d8038b9e6aa189ef8 /Makefile | |
parent | 5aa50db3e7710659250b66a6b3eda54a29f21224 (diff) |
Easier pkgconf change
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |