1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 plugindir = $(libdir)/gnunet
6 pkgcfgdir= $(pkgdatadir)/config.d/
12 AM_CFLAGS = --coverage -O0
17 SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la
20 POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la
26 libgnunetdatacache_la_SOURCES = \
28 libgnunetdatacache_la_LIBADD = \
29 $(top_builddir)/src/statistics/libgnunetstatistics.la \
30 $(top_builddir)/src/util/libgnunetutil.la \
32 libgnunetdatacache_la_LDFLAGS = \
37 plugin_LTLIBRARIES = \
40 libgnunet_plugin_datacache_heap.la
42 # Real plugins should of course go into
44 noinst_LTLIBRARIES = \
45 libgnunet_plugin_datacache_template.la
48 libgnunet_plugin_datacache_sqlite_la_SOURCES = \
49 plugin_datacache_sqlite.c
50 libgnunet_plugin_datacache_sqlite_la_LIBADD = \
51 $(top_builddir)/src/statistics/libgnunetstatistics.la \
52 $(top_builddir)/src/sq/libgnunetsq.la \
53 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
55 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
58 libgnunet_plugin_datacache_heap_la_SOURCES = \
59 plugin_datacache_heap.c
60 libgnunet_plugin_datacache_heap_la_LIBADD = \
61 $(top_builddir)/src/statistics/libgnunetstatistics.la \
62 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
64 libgnunet_plugin_datacache_heap_la_LDFLAGS = \
67 libgnunet_plugin_datacache_postgres_la_SOURCES = \
68 plugin_datacache_postgres.c
69 libgnunet_plugin_datacache_postgres_la_LIBADD = \
70 $(top_builddir)/src/pq/libgnunetpq.la \
71 $(top_builddir)/src/statistics/libgnunetstatistics.la \
72 $(top_builddir)/src/util/libgnunetutil.la \
73 $(GN_PLUGIN_LDFLAGS) -lpq
74 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
75 $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS)
76 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
77 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
79 libgnunet_plugin_datacache_template_la_SOURCES = \
80 plugin_datacache_template.c
81 libgnunet_plugin_datacache_template_la_LIBADD = \
82 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
84 libgnunet_plugin_datacache_template_la_LDFLAGS = \
95 test_datacache_sqlite \
96 test_datacache_quota_sqlite \
105 test_datacache_heap \
106 test_datacache_quota_heap \
111 POSTGRES_BENCHMARKS = \
112 perf_datacache_postgres
115 test_datacache_postgres \
116 test_datacache_quota_postgres \
117 $(POSTGRES_BENCHMARKS)
127 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
128 TESTS = $(check_PROGRAMS)
131 test_datacache_sqlite_SOURCES = \
133 test_datacache_sqlite_LDADD = \
134 $(top_builddir)/src/testing/libgnunettesting.la \
135 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/testing/libgnunettesting.la \
142 libgnunetdatacache.la \
143 $(top_builddir)/src/util/libgnunetutil.la
145 perf_datacache_sqlite_SOURCES = \
147 perf_datacache_sqlite_LDADD = \
148 $(top_builddir)/src/testing/libgnunettesting.la \
149 libgnunetdatacache.la \
150 $(top_builddir)/src/util/libgnunetutil.la
152 test_datacache_heap_SOURCES = \
154 test_datacache_heap_LDADD = \
155 $(top_builddir)/src/testing/libgnunettesting.la \
156 libgnunetdatacache.la \
157 $(top_builddir)/src/util/libgnunetutil.la
159 test_datacache_quota_heap_SOURCES = \
160 test_datacache_quota.c
161 test_datacache_quota_heap_LDADD = \
162 $(top_builddir)/src/testing/libgnunettesting.la \
163 libgnunetdatacache.la \
164 $(top_builddir)/src/util/libgnunetutil.la
166 perf_datacache_heap_SOURCES = \
168 perf_datacache_heap_LDADD = \
169 $(top_builddir)/src/testing/libgnunettesting.la \
170 libgnunetdatacache.la \
171 $(top_builddir)/src/util/libgnunetutil.la
173 test_datacache_postgres_SOURCES = \
175 test_datacache_postgres_LDADD = \
176 $(top_builddir)/src/testing/libgnunettesting.la \
177 libgnunetdatacache.la \
178 $(top_builddir)/src/util/libgnunetutil.la
180 test_datacache_quota_postgres_SOURCES = \
181 test_datacache_quota.c
182 test_datacache_quota_postgres_LDADD = \
183 $(top_builddir)/src/testing/libgnunettesting.la \
184 libgnunetdatacache.la \
185 $(top_builddir)/src/util/libgnunetutil.la
187 perf_datacache_postgres_SOURCES = \
189 perf_datacache_postgres_LDADD = \
190 $(top_builddir)/src/testing/libgnunettesting.la \
191 libgnunetdatacache.la \
192 $(top_builddir)/src/util/libgnunetutil.la
195 test_datacache_data_sqlite.conf \
196 perf_datacache_data_sqlite.conf \
197 test_datacache_data_heap.conf \
198 perf_datacache_data_heap.conf \
199 test_datacache_data_postgres.conf \
200 perf_datacache_data_postgres.conf