1if ENABLE_GEOIP2
2module_LTLIBRARIES				+= modules/geoip2/libgeoip2-plugin.la
3
4modules_geoip2_libgeoip2_plugin_la_SOURCES=	\
5	modules/geoip2/geoip-parser.c   \
6	modules/geoip2/geoip-parser.h		\
7	modules/geoip2/geoip-parser-grammar.y	\
8	modules/geoip2/geoip-parser-parser.c	\
9	modules/geoip2/geoip-parser-parser.h	\
10	modules/geoip2/geoip-plugin.c		\
11	modules/geoip2/maxminddb-helper.h	\
12	modules/geoip2/maxminddb-helper.c
13
14modules_geoip2_libgeoip2_plugin_la_CPPFLAGS	=	\
15	$(AM_CPPFLAGS)					\
16	-I$(top_srcdir)/modules/geoip2			\
17	-I$(top_builddir)/modules/geoip2
18modules_geoip2_libgeoip2_plugin_la_CFLAGS		=	\
19	$(AM_CFLAGS) \
20	$(GEOIP_CFLAGS)
21modules_geoip2_libgeoip2_plugin_la_LIBADD		=	\
22	$(MODULE_DEPS_LIBS) $(MAXMINDDB_LIBS)
23modules_geoip2_libgeoip2_plugin_la_LDFLAGS	=	\
24	$(MODULE_LDFLAGS)
25modules_geoip2_libgeoip2_plugin_la_DEPENDENCIES	=	\
26	$(MODULE_DEPS_LIBS)
27
28modules/geoip2 modules/geoip2/ mod-geoip2:	\
29	modules/geoip2/libgeoip2-plugin.la
30else
31modules/geoip2 modules/geoip2/ mod-geoip2:
32endif
33
34BUILT_SOURCES					+=	\
35	modules/geoip2/geoip-parser-grammar.y		\
36	modules/geoip2/geoip-parser-grammar.c		\
37	modules/geoip2/geoip-parser-grammar.h
38EXTRA_DIST					+=	\
39	modules/geoip2/geoip-parser-grammar.ym		\
40        modules/geoip2/tfgeoip.c	\
41	modules/geoip2/CMakeLists.txt
42
43.PHONY: modules/geoip2/ mod-geoip2
44
45include modules/geoip2/tests/Makefile.am
46