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_heap.la \
48 libgnunet_plugin_datacache_template.la
51 libgnunet_plugin_datacache_sqlite_la_SOURCES = \
52 plugin_datacache_sqlite.c
53 libgnunet_plugin_datacache_sqlite_la_LIBADD = \
54 $(top_builddir)/src/statistics/libgnunetstatistics.la \
55 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
57 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
60 libgnunet_plugin_datacache_heap_la_SOURCES = \
61 plugin_datacache_heap.c
62 libgnunet_plugin_datacache_heap_la_LIBADD = \
63 $(top_builddir)/src/statistics/libgnunetstatistics.la \
64 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
66 libgnunet_plugin_datacache_heap_la_LDFLAGS = \
69 libgnunet_plugin_datacache_mysql_la_SOURCES = \
70 plugin_datacache_mysql.c
71 libgnunet_plugin_datacache_mysql_la_LIBADD = \
72 $(top_builddir)/src/statistics/libgnunetstatistics.la \
73 $(top_builddir)/src/mysql/libgnunetmysql.la \
74 $(top_builddir)/src/util/libgnunetutil.la \
75 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
76 libgnunet_plugin_datacache_mysql_la_CPPFLAGS = \
78 libgnunet_plugin_datacache_mysql_la_LDFLAGS = \
79 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
81 libgnunet_plugin_datacache_postgres_la_SOURCES = \
82 plugin_datacache_postgres.c
83 libgnunet_plugin_datacache_postgres_la_LIBADD = \
84 $(top_builddir)/src/postgres/libgnunetpostgres.la \
85 $(top_builddir)/src/statistics/libgnunetstatistics.la \
86 $(top_builddir)/src/util/libgnunetutil.la \
87 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
88 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
90 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
91 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
93 libgnunet_plugin_datacache_template_la_SOURCES = \
94 plugin_datacache_template.c
95 libgnunet_plugin_datacache_template_la_LIBADD = \
96 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
98 libgnunet_plugin_datacache_template_la_LDFLAGS = \
104 SQLITE_BENCHMARKS = \
105 perf_datacache_sqlite
108 test_datacache_sqlite \
109 test_datacache_quota_sqlite \
119 test_datacache_mysql \
120 test_datacache_quota_mysql \
126 POSTGRES_BENCHMARKS = \
127 perf_datacache_postgres
130 test_datacache_postgres \
131 test_datacache_quota_postgres \
132 $(POSTGRES_BENCHMARKS)
141 TESTS = $(check_PROGRAMS)
144 test_datacache_sqlite_SOURCES = \
146 test_datacache_sqlite_LDADD = \
147 $(top_builddir)/src/testing/libgnunettesting.la \
148 $(top_builddir)/src/datacache/libgnunetdatacache.la \
149 $(top_builddir)/src/util/libgnunetutil.la
151 test_datacache_quota_sqlite_SOURCES = \
152 test_datacache_quota.c
153 test_datacache_quota_sqlite_LDADD = \
154 $(top_builddir)/src/testing/libgnunettesting.la \
155 $(top_builddir)/src/datacache/libgnunetdatacache.la \
156 $(top_builddir)/src/util/libgnunetutil.la
158 perf_datacache_sqlite_SOURCES = \
160 perf_datacache_sqlite_LDADD = \
161 $(top_builddir)/src/testing/libgnunettesting.la \
162 $(top_builddir)/src/datacache/libgnunetdatacache.la \
163 $(top_builddir)/src/util/libgnunetutil.la
165 test_datacache_mysql_SOURCES = \
167 test_datacache_mysql_LDADD = \
168 $(top_builddir)/src/testing/libgnunettesting.la \
169 $(top_builddir)/src/datacache/libgnunetdatacache.la \
170 $(top_builddir)/src/util/libgnunetutil.la
172 test_datacache_quota_mysql_SOURCES = \
173 test_datacache_quota.c
174 test_datacache_quota_mysql_LDADD = \
175 $(top_builddir)/src/testing/libgnunettesting.la \
176 $(top_builddir)/src/datacache/libgnunetdatacache.la \
177 $(top_builddir)/src/util/libgnunetutil.la
179 perf_datacache_mysql_SOURCES = \
181 perf_datacache_mysql_LDADD = \
182 $(top_builddir)/src/testing/libgnunettesting.la \
183 $(top_builddir)/src/datacache/libgnunetdatacache.la \
184 $(top_builddir)/src/util/libgnunetutil.la
186 test_datacache_postgres_SOURCES = \
188 test_datacache_postgres_LDADD = \
189 $(top_builddir)/src/testing/libgnunettesting.la \
190 $(top_builddir)/src/datacache/libgnunetdatacache.la \
191 $(top_builddir)/src/util/libgnunetutil.la
193 test_datacache_quota_postgres_SOURCES = \
194 test_datacache_quota.c
195 test_datacache_quota_postgres_LDADD = \
196 $(top_builddir)/src/testing/libgnunettesting.la \
197 $(top_builddir)/src/datacache/libgnunetdatacache.la \
198 $(top_builddir)/src/util/libgnunetutil.la
200 perf_datacache_postgres_SOURCES = \
202 perf_datacache_postgres_LDADD = \
203 $(top_builddir)/src/testing/libgnunettesting.la \
204 $(top_builddir)/src/datacache/libgnunetdatacache.la \
205 $(top_builddir)/src/util/libgnunetutil.la
208 test_datacache_data_sqlite.conf \
209 perf_datacache_data_sqlite.conf \
210 test_datacache_data_mysql.conf \
211 perf_datacache_data_mysql.conf \
212 test_datacache_data_postgres.conf \
213 perf_datacache_data_postgres.conf