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 = \
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 = $(check_PROGRAMS)
128 test_datacache_sqlite_SOURCES = \
130 test_datacache_sqlite_LDADD = \
131 $(top_builddir)/src/testing/libgnunettesting.la \
132 $(top_builddir)/src/datacache/libgnunetdatacache.la \
133 $(top_builddir)/src/util/libgnunetutil.la
135 test_datacache_quota_sqlite_SOURCES = \
136 test_datacache_quota.c
137 test_datacache_quota_sqlite_LDADD = \
138 $(top_builddir)/src/testing/libgnunettesting.la \
139 $(top_builddir)/src/datacache/libgnunetdatacache.la \
140 $(top_builddir)/src/util/libgnunetutil.la
142 perf_datacache_sqlite_SOURCES = \
144 perf_datacache_sqlite_LDADD = \
145 $(top_builddir)/src/testing/libgnunettesting.la \
146 $(top_builddir)/src/datacache/libgnunetdatacache.la \
147 $(top_builddir)/src/util/libgnunetutil.la
149 test_datacache_heap_SOURCES = \
151 test_datacache_heap_LDADD = \
152 $(top_builddir)/src/testing/libgnunettesting.la \
153 $(top_builddir)/src/datacache/libgnunetdatacache.la \
154 $(top_builddir)/src/util/libgnunetutil.la
156 test_datacache_quota_heap_SOURCES = \
157 test_datacache_quota.c
158 test_datacache_quota_heap_LDADD = \
159 $(top_builddir)/src/testing/libgnunettesting.la \
160 $(top_builddir)/src/datacache/libgnunetdatacache.la \
161 $(top_builddir)/src/util/libgnunetutil.la
163 perf_datacache_heap_SOURCES = \
165 perf_datacache_heap_LDADD = \
166 $(top_builddir)/src/testing/libgnunettesting.la \
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/testing/libgnunettesting.la \
174 $(top_builddir)/src/datacache/libgnunetdatacache.la \
175 $(top_builddir)/src/util/libgnunetutil.la
177 test_datacache_quota_postgres_SOURCES = \
178 test_datacache_quota.c
179 test_datacache_quota_postgres_LDADD = \
180 $(top_builddir)/src/testing/libgnunettesting.la \
181 $(top_builddir)/src/datacache/libgnunetdatacache.la \
182 $(top_builddir)/src/util/libgnunetutil.la
184 perf_datacache_postgres_SOURCES = \
186 perf_datacache_postgres_LDADD = \
187 $(top_builddir)/src/testing/libgnunettesting.la \
188 $(top_builddir)/src/datacache/libgnunetdatacache.la \
189 $(top_builddir)/src/util/libgnunetutil.la
192 test_datacache_data_sqlite.conf \
193 perf_datacache_data_sqlite.conf \
194 test_datacache_data_heap.conf \
195 perf_datacache_data_heap.conf \
196 test_datacache_data_postgres.conf \
197 perf_datacache_data_postgres.conf