summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f0dae0b..c5ea363 100644
--- a/Makefile
+++ b/Makefile
@@ -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