1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
5 pkgcfgdir= $(pkgdatadir)/config.d/
11 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
15 AM_CFLAGS = --coverage -O0
20 SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la
23 MYSQL_PLUGIN = libgnunet_plugin_datacache_mysql.la
26 POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la
32 libgnunetdatacache_la_SOURCES = \
34 libgnunetdatacache_la_LIBADD = \
35 $(top_builddir)/src/statistics/libgnunetstatistics.la \
36 $(top_builddir)/src/util/libgnunetutil.la \
38 libgnunetdatacache_la_LDFLAGS = \
39 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
43 plugin_LTLIBRARIES = \
47 libgnunet_plugin_datacache_template.la
50 libgnunet_plugin_datacache_sqlite_la_SOURCES = \
51 plugin_datacache_sqlite.c
52 libgnunet_plugin_datacache_sqlite_la_LIBADD = \
53 $(top_builddir)/src/statistics/libgnunetstatistics.la \
54 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
55 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
58 libgnunet_plugin_datacache_mysql_la_SOURCES = \
59 plugin_datacache_mysql.c
60 libgnunet_plugin_datacache_mysql_la_LIBADD = \
61 $(top_builddir)/src/statistics/libgnunetstatistics.la \
62 $(top_builddir)/src/mysql/libgnunetmysql.la \
63 $(top_builddir)/src/util/libgnunetutil.la \
64 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
65 libgnunet_plugin_datacache_mysql_la_CPPFLAGS = \
67 libgnunet_plugin_datacache_mysql_la_LDFLAGS = \
68 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
70 libgnunet_plugin_datacache_postgres_la_SOURCES = \
71 plugin_datacache_postgres.c
72 libgnunet_plugin_datacache_postgres_la_LIBADD = \
73 $(top_builddir)/src/postgres/libgnunetpostgres.la \
74 $(top_builddir)/src/statistics/libgnunetstatistics.la \
75 $(top_builddir)/src/util/libgnunetutil.la \
76 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
77 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
79 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
80 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
82 libgnunet_plugin_datacache_template_la_SOURCES = \
83 plugin_datacache_template.c
84 libgnunet_plugin_datacache_template_la_LIBADD = \
85 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
86 libgnunet_plugin_datacache_template_la_LDFLAGS = \
96 test_datacache_sqlite \
97 test_datacache_quota_sqlite \
107 test_datacache_mysql \
108 test_datacache_quota_mysql \
114 POSTGRES_BENCHMARKS = \
115 perf_datacache_postgres
118 test_datacache_postgres \
119 test_datacache_quota_postgres \
120 $(POSTGRES_BENCHMARKS)
129 TESTS = $(check_PROGRAMS)
132 test_datacache_sqlite_SOURCES = \
134 test_datacache_sqlite_LDADD = \
135 $(top_builddir)/src/datacache/libgnunetdatacache.la \
136 $(top_builddir)/src/util/libgnunetutil.la
138 test_datacache_quota_sqlite_SOURCES = \
139 test_datacache_quota.c
140 test_datacache_quota_sqlite_LDADD = \
141 $(top_builddir)/src/datacache/libgnunetdatacache.la \
142 $(top_builddir)/src/util/libgnunetutil.la
144 perf_datacache_sqlite_SOURCES = \
146 perf_datacache_sqlite_LDADD = \
147 $(top_builddir)/src/datacache/libgnunetdatacache.la \
148 $(top_builddir)/src/util/libgnunetutil.la
150 test_datacache_mysql_SOURCES = \
152 test_datacache_mysql_LDADD = \
153 $(top_builddir)/src/datacache/libgnunetdatacache.la \
154 $(top_builddir)/src/util/libgnunetutil.la
156 test_datacache_quota_mysql_SOURCES = \
157 test_datacache_quota.c
158 test_datacache_quota_mysql_LDADD = \
159 $(top_builddir)/src/datacache/libgnunetdatacache.la \
160 $(top_builddir)/src/util/libgnunetutil.la
162 perf_datacache_mysql_SOURCES = \
164 perf_datacache_mysql_LDADD = \
165 $(top_builddir)/src/datacache/libgnunetdatacache.la \
166 $(top_builddir)/src/util/libgnunetutil.la
168 test_datacache_postgres_SOURCES = \
170 test_datacache_postgres_LDADD = \
171 $(top_builddir)/src/datacache/libgnunetdatacache.la \
172 $(top_builddir)/src/util/libgnunetutil.la
174 test_datacache_quota_postgres_SOURCES = \
175 test_datacache_quota.c
176 test_datacache_quota_postgres_LDADD = \
177 $(top_builddir)/src/datacache/libgnunetdatacache.la \
178 $(top_builddir)/src/util/libgnunetutil.la
180 perf_datacache_postgres_SOURCES = \
182 perf_datacache_postgres_LDADD = \
183 $(top_builddir)/src/datacache/libgnunetdatacache.la \
184 $(top_builddir)/src/util/libgnunetutil.la
187 test_datacache_data_sqlite.conf \
188 perf_datacache_data_sqlite.conf \
189 test_datacache_data_mysql.conf \
190 perf_datacache_data_mysql.conf \
191 test_datacache_data_postgres.conf \
192 perf_datacache_data_postgres.conf