diff options
Diffstat (limited to 'netsniff-ng/Makefile')
-rw-r--r-- | netsniff-ng/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/netsniff-ng/Makefile b/netsniff-ng/Makefile index 2f64c0f..fb913d6 100644 --- a/netsniff-ng/Makefile +++ b/netsniff-ng/Makefile @@ -1,5 +1,4 @@ -netsniff-ng-libs = -lGeoIP \ - $(shell pkg-config --libs libnl-3.0) \ +netsniff-ng-libs = $(shell pkg-config --libs libnl-3.0) \ $(shell pkg-config --libs libnl-genl-3.0) \ -lpthread \ -lz @@ -7,6 +6,9 @@ netsniff-ng-libs = -lGeoIP \ ifeq ($(CONFIG_LIBPCAP), 1) netsniff-ng-libs += -lpcap endif +ifeq ($(CONFIG_LIBGEOIP), 1) +netsniff-ng-libs += -lGeoIP +endif netsniff-ng-objs = dissector.o \ dissector_eth.o \ @@ -58,13 +60,15 @@ netsniff-ng-objs = dissector.o \ ring.o \ tprintf.o \ timer.o \ - geoip.o \ mac80211.o \ netsniff-ng.o ifeq ($(CONFIG_LIBPCAP), 1) netsniff-ng-objs += bpf_comp.o endif +ifeq ($(CONFIG_LIBGEOIP), 1) +netsniff-ng-objs += geoip.o +endif ifeq ($(CONFIG_HWTSTAMP), 1) netsniff-ng-objs += tstamping.o endif |