summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2017-09-18 08:30:48 +0200
committerMichael Stapelberg <michael@stapelberg.de>2017-09-18 08:30:48 +0200
commit9f5ac89aa490f1fc8d1bf57106641c9ebaa2e9f3 (patch)
treee84ce9551832cfb15193eea9bc4ab8c0ee5acec9 /Makefile
parent884e4da6730a31fc7a5ef892fb9cb061baaf5f6c (diff)
Makefile: make PKG_CONFIG overridable (patch by Helmut Grohne)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3084ae7..86830ef 100644
--- 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