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 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
16 AM_CFLAGS = --coverage -O0
21 SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la
24 POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la
30 libgnunetdatacache_la_SOURCES = \
32 libgnunetdatacache_la_LIBADD = \
33 $(top_builddir)/src/statistics/libgnunetstatistics.la \
34 $(top_builddir)/src/util/libgnunetutil.la \
36 libgnunetdatacache_la_LDFLAGS = \
37 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
41 plugin_LTLIBRARIES = \
44 libgnunet_plugin_datacache_heap.la
46 # Real plugins should of course go into
48 noinst_LTLIBRARIES = \
49 libgnunet_plugin_datacache_template.la
52 libgnunet_plugin_datacache_sqlite_la_SOURCES = \
53 plugin_datacache_sqlite.c
54 libgnunet_plugin_datacache_sqlite_la_LIBADD = \
55 $(top_builddir)/src/statistics/libgnunetstatistics.la \
56 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
58 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
61 libgnunet_plugin_datacache_heap_la_SOURCES = \
62 plugin_datacache_heap.c
63 libgnunet_plugin_datacache_heap_la_LIBADD = \
64 $(top_builddir)/src/statistics/libgnunetstatistics.la \
65 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
67 libgnunet_plugin_datacache_heap_la_LDFLAGS = \
70 libgnunet_plugin_datacache_postgres_la_SOURCES = \
71 plugin_datacache_postgres.c
72 libgnunet_plugin_datacache_postgres_la_LIBADD = \
73 $(top_builddir)/src/postgres/libgnunetpostgres.la \
74 $(top_builddir)/src/statistics/libgnunetstatistics.la \
75 $(top_builddir)/src/util/libgnunetutil.la \
76 $(GN_PLUGIN_LDFLAGS) -lpq
77 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
78 $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS)
79 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
80 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
82 libgnunet_plugin_datacache_template_la_SOURCES = \
83 plugin_datacache_template.c
84 libgnunet_plugin_datacache_template_la_LIBADD = \
85 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
87 libgnunet_plugin_datacache_template_la_LDFLAGS = \
98 test_datacache_sqlite \
99 test_datacache_quota_sqlite \
108 test_datacache_heap \
109 test_datacache_quota_heap \
114 POSTGRES_BENCHMARKS = \
115 perf_datacache_postgres
118 test_datacache_postgres \
119 test_datacache_quota_postgres \
120 $(POSTGRES_BENCHMARKS)
130 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
131 TESTS = $(check_PROGRAMS)
134 test_datacache_sqlite_SOURCES = \
136 test_datacache_sqlite_LDADD = \
137 $(top_builddir)/src/testing/libgnunettesting.la \
138 libgnunetdatacache.la \
139 $(top_builddir)/src/util/libgnunetutil.la
141 test_datacache_quota_sqlite_SOURCES = \
142 test_datacache_quota.c
143 test_datacache_quota_sqlite_LDADD = \
144 $(top_builddir)/src/testing/libgnunettesting.la \
145 libgnunetdatacache.la \
146 $(top_builddir)/src/util/libgnunetutil.la
148 perf_datacache_sqlite_SOURCES = \
150 perf_datacache_sqlite_LDADD = \
151 $(top_builddir)/src/testing/libgnunettesting.la \
152 libgnunetdatacache.la \
153 $(top_builddir)/src/util/libgnunetutil.la
155 test_datacache_heap_SOURCES = \
157 test_datacache_heap_LDADD = \
158 $(top_builddir)/src/testing/libgnunettesting.la \
159 libgnunetdatacache.la \
160 $(top_builddir)/src/util/libgnunetutil.la
162 test_datacache_quota_heap_SOURCES = \
163 test_datacache_quota.c
164 test_datacache_quota_heap_LDADD = \
165 $(top_builddir)/src/testing/libgnunettesting.la \
166 libgnunetdatacache.la \
167 $(top_builddir)/src/util/libgnunetutil.la
169 perf_datacache_heap_SOURCES = \
171 perf_datacache_heap_LDADD = \
172 $(top_builddir)/src/testing/libgnunettesting.la \
173 libgnunetdatacache.la \
174 $(top_builddir)/src/util/libgnunetutil.la
176 test_datacache_postgres_SOURCES = \
178 test_datacache_postgres_LDADD = \
179 $(top_builddir)/src/testing/libgnunettesting.la \
180 libgnunetdatacache.la \
181 $(top_builddir)/src/util/libgnunetutil.la
183 test_datacache_quota_postgres_SOURCES = \
184 test_datacache_quota.c
185 test_datacache_quota_postgres_LDADD = \
186 $(top_builddir)/src/testing/libgnunettesting.la \
187 libgnunetdatacache.la \
188 $(top_builddir)/src/util/libgnunetutil.la
190 perf_datacache_postgres_SOURCES = \
192 perf_datacache_postgres_LDADD = \
193 $(top_builddir)/src/testing/libgnunettesting.la \
194 libgnunetdatacache.la \
195 $(top_builddir)/src/util/libgnunetutil.la
198 test_datacache_data_sqlite.conf \
199 perf_datacache_data_sqlite.conf \
200 test_datacache_data_heap.conf \
201 perf_datacache_data_heap.conf \
202 test_datacache_data_postgres.conf \
203 perf_datacache_data_postgres.conf