diff options
author | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2020-01-08 22:27:22 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2020-01-08 22:27:22 +0100 |
commit | 7e2daf2984fc4d479b153e899b80e8d669ff54cf (patch) | |
tree | 2a18e8fbb19d9fed6c49d0e7145202da2ae5ef48 | |
parent | 89a488ae0cab406469d061dd36078e7d1815da75 (diff) |
Makefile: allow passing a custom path to pcap-config
Some build systems need to pass a custom location for the pcap-config
script, so let's provide a PCAP_CONFIG variable that allows such
customization. Its default value is pcap-config, which preserves the
backward compatibility.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,8 @@ CFLAGS = -g -O2 -Wall -Wunused -Waddress DBUS_FLAGS = $(shell pkg-config --cflags --libs dbus-1) GIO_FLAGS := $(shell pkg-config --cflags --libs 'glib-2.0 >= 2.26' gio-2.0 gio-unix-2.0) -PCAP_FLAGS := $(shell pcap-config --cflags pcap-config --libs) +PCAP_CONFIG ?= pcap-config +PCAP_FLAGS := $(shell $(PCAP_CONFIG) --cflags pcap-config --libs) DESTDIR = PREFIX = /usr/local BINDIR = $(DESTDIR)$(PREFIX)/bin |