diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-05-27 11:10:16 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-05-27 11:18:21 +0200 |
commit | 98e21eb8633b31b006671735602df08d3f073261 (patch) | |
tree | 12a25c68040a6e7718326cdf556dcc404e84380b /astraceroute | |
parent | 47f41a76c7086761d0c64e743a5ca9f1b0e71440 (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')
-rw-r--r-- | astraceroute/Makefile | 13 |
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 |