1 AM_CPPFLAGS = -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 POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la
29 libgnunetdatacache_la_SOURCES = \
31 libgnunetdatacache_la_LIBADD = \
32 $(top_builddir)/src/statistics/libgnunetstatistics.la \
33 $(top_builddir)/src/util/libgnunetutil.la \
35 libgnunetdatacache_la_LDFLAGS = \
36 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
40 plugin_LTLIBRARIES = \
43 libgnunet_plugin_datacache_heap.la \
44 libgnunet_plugin_datacache_template.la
47 libgnunet_plugin_datacache_sqlite_la_SOURCES = \
48 plugin_datacache_sqlite.c
49 libgnunet_plugin_datacache_sqlite_la_LIBADD = \
50 $(top_builddir)/src/statistics/libgnunetstatistics.la \
51 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
53 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
56 libgnunet_plugin_datacache_heap_la_SOURCES = \
57 plugin_datacache_heap.c
58 libgnunet_plugin_datacache_heap_la_LIBADD = \
59 $(top_builddir)/src/statistics/libgnunetstatistics.la \
60 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
62 libgnunet_plugin_datacache_heap_la_LDFLAGS = \
65 libgnunet_plugin_datacache_postgres_la_SOURCES = \
66 plugin_datacache_postgres.c
67 libgnunet_plugin_datacache_postgres_la_LIBADD = \
68 $(top_builddir)/src/postgres/libgnunetpostgres.la \
69 $(top_builddir)/src/statistics/libgnunetstatistics.la \
70 $(top_builddir)/src/util/libgnunetutil.la \
71 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
72 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
73 $(POSTGRES_CPPFLAGS) $(AM_CPPFLAGS)
74 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
75 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
77 libgnunet_plugin_datacache_template_la_SOURCES = \
78 plugin_datacache_template.c
79 libgnunet_plugin_datacache_template_la_LIBADD = \
80 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
82 libgnunet_plugin_datacache_template_la_LDFLAGS = \
93 test_datacache_sqlite \
94 test_datacache_quota_sqlite \
103 test_datacache_heap \
104 test_datacache_quota_heap \
109 POSTGRES_BENCHMARKS = \
110 perf_datacache_postgres
113 test_datacache_postgres \
114 test_datacache_quota_postgres \
115 $(POSTGRES_BENCHMARKS)
125 TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
126 TESTS = $(check_PROGRAMS)
129 test_datacache_sqlite_SOURCES = \
131 test_datacache_sqlite_LDADD = \
132 $(top_builddir)/src/testing/libgnunettesting.la \
133 $(top_builddir)/src/datacache/libgnunetdatacache.la \
134 $(top_builddir)/src/util/libgnunetutil.la
136 test_datacache_quota_sqlite_SOURCES = \
137 test_datacache_quota.c
138 test_datacache_quota_sqlite_LDADD = \
139 $(top_builddir)/src/testing/libgnunettesting.la \
140 $(top_builddir)/src/datacache/libgnunetdatacache.la \
141 $(top_builddir)/src/util/libgnunetutil.la
143 perf_datacache_sqlite_SOURCES = \
145 perf_datacache_sqlite_LDADD = \
146 $(top_builddir)/src/testing/libgnunettesting.la \
147 $(top_builddir)/src/datacache/libgnunetdatacache.la \
148 $(top_builddir)/src/util/libgnunetutil.la
150 test_datacache_heap_SOURCES = \
152 test_datacache_heap_LDADD = \
153 $(top_builddir)/src/testing/libgnunettesting.la \
154 $(top_builddir)/src/datacache/libgnunetdatacache.la \
155 $(top_builddir)/src/util/libgnunetutil.la
157 test_datacache_quota_heap_SOURCES = \
158 test_datacache_quota.c
159 test_datacache_quota_heap_LDADD = \
160 $(top_builddir)/src/testing/libgnunettesting.la \
161 $(top_builddir)/src/datacache/libgnunetdatacache.la \
162 $(top_builddir)/src/util/libgnunetutil.la
164 perf_datacache_heap_SOURCES = \
166 perf_datacache_heap_LDADD = \
167 $(top_builddir)/src/testing/libgnunettesting.la \
168 $(top_builddir)/src/datacache/libgnunetdatacache.la \
169 $(top_builddir)/src/util/libgnunetutil.la
171 test_datacache_postgres_SOURCES = \
173 test_datacache_postgres_LDADD = \
174 $(top_builddir)/src/testing/libgnunettesting.la \
175 $(top_builddir)/src/datacache/libgnunetdatacache.la \
176 $(top_builddir)/src/util/libgnunetutil.la
178 test_datacache_quota_postgres_SOURCES = \
179 test_datacache_quota.c
180 test_datacache_quota_postgres_LDADD = \
181 $(top_builddir)/src/testing/libgnunettesting.la \
182 $(top_builddir)/src/datacache/libgnunetdatacache.la \
183 $(top_builddir)/src/util/libgnunetutil.la
185 perf_datacache_postgres_SOURCES = \
187 perf_datacache_postgres_LDADD = \
188 $(top_builddir)/src/testing/libgnunettesting.la \
189 $(top_builddir)/src/datacache/libgnunetdatacache.la \
190 $(top_builddir)/src/util/libgnunetutil.la
193 test_datacache_data_sqlite.conf \
194 perf_datacache_data_sqlite.conf \
195 test_datacache_data_heap.conf \
196 perf_datacache_data_heap.conf \
197 test_datacache_data_postgres.conf \
198 perf_datacache_data_postgres.conf