summaryrefslogtreecommitdiff
path: root/flowtop/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'flowtop/Makefile')
-rw-r--r--flowtop/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/flowtop/Makefile b/flowtop/Makefile
index 12f8d61..03f628e 100644
--- a/flowtop/Makefile
+++ b/flowtop/Makefile
@@ -1,11 +1,14 @@
-flowtop-libs = -lGeoIP \
- -lurcu \
+flowtop-libs = -lurcu \
-lnetfilter_conntrack \
$(shell pkg-config --libs ncurses 2> /dev/null \
|| echo '-lncurses') \
$(shell pkg-config --libs tinfo 2> /dev/null ) \
- -lpthread \
+ -lpthread
+
+ifeq ($(CONFIG_GEOIP), 1)
+flowtop-libs += -lGeoIP \
-lz
+endif
flowtop-objs = xmalloc.o \
ioops.o \
@@ -21,10 +24,13 @@ flowtop-objs = xmalloc.o \
dissector.o \
proto_none.o \
tprintf.o \
- geoip.o \
screen.o \
flowtop.o
+ifeq ($(CONFIG_GEOIP), 1)
+flowtop-objs += geoip.o
+endif
+
flowtop-eflags = $(shell pkg-config --cflags ncurses)
flowtop-confs = tcp.conf \