1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
6 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
10 AM_CFLAGS = --coverage -O0
15 SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la
18 MYSQL_PLUGIN = libgnunet_plugin_datacache_mysql.la
21 POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la
27 libgnunetdatacache_la_SOURCES = \
29 libgnunetdatacache_la_LIBADD = \
30 $(top_builddir)/src/statistics/libgnunetstatistics.la \
31 $(top_builddir)/src/util/libgnunetutil.la \
33 libgnunetdatacache_la_LDFLAGS = \
34 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
38 plugin_LTLIBRARIES = \
42 libgnunet_plugin_datacache_template.la
45 libgnunet_plugin_datacache_sqlite_la_SOURCES = \
46 plugin_datacache_sqlite.c
47 libgnunet_plugin_datacache_sqlite_la_LIBADD = \
48 $(top_builddir)/src/statistics/libgnunetstatistics.la \
49 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
50 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
53 libgnunet_plugin_datacache_mysql_la_SOURCES = \
54 plugin_datacache_mysql.c
55 libgnunet_plugin_datacache_mysql_la_LIBADD = \
56 $(top_builddir)/src/statistics/libgnunetstatistics.la \
57 $(top_builddir)/src/util/libgnunetutil.la \
58 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
59 libgnunet_plugin_datacache_mysql_la_CPPFLAGS = \
61 libgnunet_plugin_datacache_mysql_la_LDFLAGS = \
62 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
64 libgnunet_plugin_datacache_postgres_la_SOURCES = \
65 plugin_datacache_postgres.c
66 libgnunet_plugin_datacache_postgres_la_LIBADD = \
67 $(top_builddir)/src/statistics/libgnunetstatistics.la \
68 $(top_builddir)/src/util/libgnunetutil.la \
69 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
70 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
72 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
73 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
75 libgnunet_plugin_datacache_template_la_SOURCES = \
76 plugin_datacache_template.c
77 libgnunet_plugin_datacache_template_la_LIBADD = \
78 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
79 libgnunet_plugin_datacache_template_la_LDFLAGS = \
86 perf_datacache_postgres
89 test_datacache_sqlite \
90 test_datacache_quota_sqlite \
97 perf_datacache_postgres
100 test_datacache_mysql \
101 test_datacache_quota_mysql \
107 POSTGRES_BENCHMARKS = \
108 perf_datacache_postgres
111 test_datacache_postgres \
112 test_datacache_quota_postgres \
113 $(POSTGRES_BENCHMARKS)
122 TESTS = $(check_PROGRAMS)
125 test_datacache_sqlite_SOURCES = \
127 test_datacache_sqlite_LDADD = \
128 $(top_builddir)/src/datacache/libgnunetdatacache.la \
129 $(top_builddir)/src/util/libgnunetutil.la
131 test_datacache_quota_sqlite_SOURCES = \
132 test_datacache_quota.c
133 test_datacache_quota_sqlite_LDADD = \
134 $(top_builddir)/src/datacache/libgnunetdatacache.la \
135 $(top_builddir)/src/util/libgnunetutil.la
137 perf_datacache_sqlite_SOURCES = \
139 perf_datacache_sqlite_LDADD = \
140 $(top_builddir)/src/datacache/libgnunetdatacache.la \
141 $(top_builddir)/src/util/libgnunetutil.la
143 test_datacache_mysql_SOURCES = \
145 test_datacache_mysql_LDADD = \
146 $(top_builddir)/src/datacache/libgnunetdatacache.la \
147 $(top_builddir)/src/util/libgnunetutil.la
149 test_datacache_quota_mysql_SOURCES = \
150 test_datacache_quota.c
151 test_datacache_quota_mysql_LDADD = \
152 $(top_builddir)/src/datacache/libgnunetdatacache.la \
153 $(top_builddir)/src/util/libgnunetutil.la
155 perf_datacache_mysql_SOURCES = \
157 perf_datacache_mysql_LDADD = \
158 $(top_builddir)/src/datacache/libgnunetdatacache.la \
159 $(top_builddir)/src/util/libgnunetutil.la
161 test_datacache_postgres_SOURCES = \
163 test_datacache_postgres_LDADD = \
164 $(top_builddir)/src/datacache/libgnunetdatacache.la \
165 $(top_builddir)/src/util/libgnunetutil.la
167 test_datacache_quota_postgres_SOURCES = \
168 test_datacache_quota.c
169 test_datacache_quota_postgres_LDADD = \
170 $(top_builddir)/src/datacache/libgnunetdatacache.la \
171 $(top_builddir)/src/util/libgnunetutil.la
173 perf_datacache_postgres_SOURCES = \
175 perf_datacache_postgres_LDADD = \
176 $(top_builddir)/src/datacache/libgnunetdatacache.la \
177 $(top_builddir)/src/util/libgnunetutil.la
180 test_datacache_data_sqlite.conf \
181 perf_datacache_data_sqlite.conf \
182 test_datacache_data_mysql.conf \
183 perf_datacache_data_mysql.conf \
184 test_datacache_data_postgres.conf \
185 perf_datacache_data_postgres.conf