From c74f89bbdf57a049fa07b49429b1951b2b05773b Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 27 Apr 2021 19:13:23 +0200 Subject: Make it possible to override pkg-config in the Makefile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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} -- cgit v1.2.3-2-gb3c3