summaryrefslogtreecommitdiff
path: root/astraceroute/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-05-27 11:10:16 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-05-27 11:18:21 +0200
commit98e21eb8633b31b006671735602df08d3f073261 (patch)
tree12a25c68040a6e7718326cdf556dcc404e84380b /astraceroute/Makefile
parent47f41a76c7086761d0c64e743a5ca9f1b0e71440 (diff)
build: Allow to build astraceroute and flowtop without GeoIP support
Both tools are already prepared to handle NULL return values of the geoip_* lookup functions, so we might as well build them without geoip support if not needed/present. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
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