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 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 = \
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 = \
92 test_datacache_sqlite \
93 test_datacache_quota_sqlite \
102 test_datacache_heap \
103 test_datacache_quota_heap \
108 POSTGRES_BENCHMARKS = \
109 perf_datacache_postgres
112 test_datacache_postgres \
113 test_datacache_quota_postgres \
114 $(POSTGRES_BENCHMARKS)
123 TESTS = $(check_PROGRAMS)
126 test_datacache_sqlite_SOURCES = \
128 test_datacache_sqlite_LDADD = \
129 $(top_builddir)/src/testing/libgnunettesting.la \
130 $(top_builddir)/src/datacache/libgnunetdatacache.la \
131 $(top_builddir)/src/util/libgnunetutil.la
133 test_datacache_quota_sqlite_SOURCES = \
134 test_datacache_quota.c
135 test_datacache_quota_sqlite_LDADD = \
136 $(top_builddir)/src/testing/libgnunettesting.la \
137 $(top_builddir)/src/datacache/libgnunetdatacache.la \
138 $(top_builddir)/src/util/libgnunetutil.la
140 perf_datacache_sqlite_SOURCES = \
142 perf_datacache_sqlite_LDADD = \
143 $(top_builddir)/src/testing/libgnunettesting.la \
144 $(top_builddir)/src/datacache/libgnunetdatacache.la \
145 $(top_builddir)/src/util/libgnunetutil.la
147 test_datacache_heap_SOURCES = \
149 test_datacache_heap_LDADD = \
150 $(top_builddir)/src/testing/libgnunettesting.la \
151 $(top_builddir)/src/datacache/libgnunetdatacache.la \
152 $(top_builddir)/src/util/libgnunetutil.la
154 test_datacache_quota_heap_SOURCES = \
155 test_datacache_quota.c
156 test_datacache_quota_heap_LDADD = \
157 $(top_builddir)/src/testing/libgnunettesting.la \
158 $(top_builddir)/src/datacache/libgnunetdatacache.la \
159 $(top_builddir)/src/util/libgnunetutil.la
161 perf_datacache_heap_SOURCES = \
163 perf_datacache_heap_LDADD = \
164 $(top_builddir)/src/testing/libgnunettesting.la \
165 $(top_builddir)/src/datacache/libgnunetdatacache.la \
166 $(top_builddir)/src/util/libgnunetutil.la
168 test_datacache_postgres_SOURCES = \
170 test_datacache_postgres_LDADD = \
171 $(top_builddir)/src/testing/libgnunettesting.la \
172 $(top_builddir)/src/datacache/libgnunetdatacache.la \
173 $(top_builddir)/src/util/libgnunetutil.la
175 test_datacache_quota_postgres_SOURCES = \
176 test_datacache_quota.c
177 test_datacache_quota_postgres_LDADD = \
178 $(top_builddir)/src/testing/libgnunettesting.la \
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/testing/libgnunettesting.la \
186 $(top_builddir)/src/datacache/libgnunetdatacache.la \
187 $(top_builddir)/src/util/libgnunetutil.la
190 test_datacache_data_sqlite.conf \
191 perf_datacache_data_sqlite.conf \
192 test_datacache_data_heap.conf \
193 perf_datacache_data_heap.conf \
194 test_datacache_data_postgres.conf \
195 perf_datacache_data_postgres.conf