]> git.sur5r.net Git - i3/i3status/commitdiff
Makefile: make PKG_CONFIG overridable (patch by Helmut Grohne)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 18 Sep 2017 06:30:48 +0000 (08:30 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 18 Sep 2017 06:30:48 +0000 (08:30 +0200)
Makefile

index 3084ae7ddfa67dbea4eb9399909a84b95a9fcc4e..86830ef49a2d811655d004ef495e2f126758cdfc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ ifndef SYSCONFDIR
   endif
 endif
 
+PKG_CONFIG ?= pkg-config
 CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
 CFLAGS+=-g
 CFLAGS+=-std=gnu99
@@ -40,8 +41,8 @@ OS:=$(shell uname)
 ifeq ($(OS),Linux)
 CPPFLAGS+=-DLINUX
 CPPFLAGS+=-D_GNU_SOURCE
-CFLAGS += $(shell pkg-config --cflags libnl-genl-3.0)
-LIBS += $(shell pkg-config --libs libnl-genl-3.0)
+CFLAGS += $(shell $(PKG_CONFIG) --cflags libnl-genl-3.0)
+LIBS += $(shell $(PKG_CONFIG) --libs libnl-genl-3.0)
 LIBS+=-lasound
 endif