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 \
56 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
59 libgnunet_plugin_datacache_mysql_la_SOURCES = \
60 plugin_datacache_mysql.c
61 libgnunet_plugin_datacache_mysql_la_LIBADD = \
62 $(top_builddir)/src/statistics/libgnunetstatistics.la \
63 $(top_builddir)/src/mysql/libgnunetmysql.la \
64 $(top_builddir)/src/util/libgnunetutil.la \
65 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
66 libgnunet_plugin_datacache_mysql_la_CPPFLAGS = \
68 libgnunet_plugin_datacache_mysql_la_LDFLAGS = \
69 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
71 libgnunet_plugin_datacache_postgres_la_SOURCES = \
72 plugin_datacache_postgres.c
73 libgnunet_plugin_datacache_postgres_la_LIBADD = \
74 $(top_builddir)/src/postgres/libgnunetpostgres.la \
75 $(top_builddir)/src/statistics/libgnunetstatistics.la \
76 $(top_builddir)/src/util/libgnunetutil.la \
77 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
78 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
80 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
81 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
83 libgnunet_plugin_datacache_template_la_SOURCES = \
84 plugin_datacache_template.c
85 libgnunet_plugin_datacache_template_la_LIBADD = \
86 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
88 libgnunet_plugin_datacache_template_la_LDFLAGS = \
98 test_datacache_sqlite \
99 test_datacache_quota_sqlite \
109 test_datacache_mysql \
110 test_datacache_quota_mysql \
116 POSTGRES_BENCHMARKS = \
117 perf_datacache_postgres
120 test_datacache_postgres \
121 test_datacache_quota_postgres \
122 $(POSTGRES_BENCHMARKS)
131 TESTS = $(check_PROGRAMS)
134 test_datacache_sqlite_SOURCES = \
136 test_datacache_sqlite_LDADD = \
137 $(top_builddir)/src/datacache/libgnunetdatacache.la \
138 $(top_builddir)/src/util/libgnunetutil.la
140 test_datacache_quota_sqlite_SOURCES = \
141 test_datacache_quota.c
142 test_datacache_quota_sqlite_LDADD = \
143 $(top_builddir)/src/datacache/libgnunetdatacache.la \
144 $(top_builddir)/src/util/libgnunetutil.la
146 perf_datacache_sqlite_SOURCES = \
148 perf_datacache_sqlite_LDADD = \
149 $(top_builddir)/src/datacache/libgnunetdatacache.la \
150 $(top_builddir)/src/util/libgnunetutil.la
152 test_datacache_mysql_SOURCES = \
154 test_datacache_mysql_LDADD = \
155 $(top_builddir)/src/datacache/libgnunetdatacache.la \
156 $(top_builddir)/src/util/libgnunetutil.la
158 test_datacache_quota_mysql_SOURCES = \
159 test_datacache_quota.c
160 test_datacache_quota_mysql_LDADD = \
161 $(top_builddir)/src/datacache/libgnunetdatacache.la \
162 $(top_builddir)/src/util/libgnunetutil.la
164 perf_datacache_mysql_SOURCES = \
166 perf_datacache_mysql_LDADD = \
167 $(top_builddir)/src/datacache/libgnunetdatacache.la \
168 $(top_builddir)/src/util/libgnunetutil.la
170 test_datacache_postgres_SOURCES = \
172 test_datacache_postgres_LDADD = \
173 $(top_builddir)/src/datacache/libgnunetdatacache.la \
174 $(top_builddir)/src/util/libgnunetutil.la
176 test_datacache_quota_postgres_SOURCES = \
177 test_datacache_quota.c
178 test_datacache_quota_postgres_LDADD = \
179 $(top_builddir)/src/datacache/libgnunetdatacache.la \
180 $(top_builddir)/src/util/libgnunetutil.la
182 perf_datacache_postgres_SOURCES = \
184 perf_datacache_postgres_LDADD = \
185 $(top_builddir)/src/datacache/libgnunetdatacache.la \
186 $(top_builddir)/src/util/libgnunetutil.la
189 test_datacache_data_sqlite.conf \
190 perf_datacache_data_sqlite.conf \
191 test_datacache_data_mysql.conf \
192 perf_datacache_data_mysql.conf \
193 test_datacache_data_postgres.conf \
194 perf_datacache_data_postgres.conf