diff options
author | Wolfgang Müller | 2021-04-27 19:13:23 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-04-27 19:13:23 +0200 |
commit | c74f89bbdf57a049fa07b49429b1951b2b05773b (patch) | |
tree | ecbca754bf2a8fcfe5a6a8d60df563e80d3d01db | |
parent | cdd88fdcacd4475e44e98ff57d8d45c12d3731ec (diff) | |
download | cwm-c74f89bbdf57a049fa07b49429b1951b2b05773b.tar.gz |
Make it possible to override pkg-config in the Makefile6.9
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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} |