aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Müller2021-04-27 19:13:23 +0200
committerWolfgang Müller2021-04-27 19:13:23 +0200
commitc74f89bbdf57a049fa07b49429b1951b2b05773b (patch)
treeecbca754bf2a8fcfe5a6a8d60df563e80d3d01db
parentcdd88fdcacd4475e44e98ff57d8d45c12d3731ec (diff)
downloadcwm-c74f89bbdf57a049fa07b49429b1951b2b05773b.tar.gz
Make it possible to override pkg-config in the Makefile6.9
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 30ee071..d7a788e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,12 @@ PREFIX ?= /usr/local
BINDIR ?= ${PREFIX}/bin
MANDIR ?= ${PREFIX}/share/man
+PKG_CONFIG ?= pkg-config
+
CFLAGS ?= -O2
CFLAGS += -MMD -Wall -Wextra -Wno-unused-parameter
-CPPFLAGS += -D_GNU_SOURCE $(shell pkg-config --cflags ${LIBS})
-LDLIBS += $(shell pkg-config --libs ${LIBS})
+CPPFLAGS += -D_GNU_SOURCE $(shell ${PKG_CONFIG} --cflags ${LIBS})
+LDLIBS += $(shell ${PKG_CONFIG} --libs ${LIBS})
${PROG}: ${OBJS}
${CC} -o $@ ${CFLAGS} ${OBJS} ${LDLIBS}