aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}