From 98e21eb8633b31b006671735602df08d3f073261 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 27 May 2014 11:10:16 +0200 Subject: 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 --- astraceroute/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'astraceroute') 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 -- cgit v1.2.3-54-g00ecf