summaryrefslogtreecommitdiff
path: root/astraceroute/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'astraceroute/Makefile')
-rw-r--r--astraceroute/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/astraceroute/Makefile b/astraceroute/Makefile
index 5574168..5895730 100644
--- a/astraceroute/Makefile
+++ b/astraceroute/Makefile
@@ -1,6 +1,10 @@
-astraceroute-libs = -lGeoIP \
- -lpthread \
+astraceroute-libs = -lpthread
+
+ifeq ($(CONFIG_GEOIP), 1)
+astraceroute-libs += -lGeoIP \
-lz
+endif
+
astraceroute-objs = xmalloc.o \
ioops.o \
@@ -12,11 +16,14 @@ astraceroute-objs = xmalloc.o \
sock.o \
link.o \
dev.o \
- geoip.o \
ring_rx.o \
ring.o \
astraceroute.o
+ifeq ($(CONFIG_GEOIP), 1)
+astraceroute-objs += geoip.o
+endif
+
astraceroute-eflags =
astraceroute-confs = geoip.conf