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/sq/libgnunetsq.la \
57 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
59 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
62 libgnunet_plugin_datacache_heap_la_SOURCES = \
63 plugin_datacache_heap.c
64 libgnunet_plugin_datacache_heap_la_LIBADD = \
65 $(top_builddir)/src/statistics/libgnunetstatistics.la \
66 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
68 libgnunet_plugin_datacache_heap_la_LDFLAGS = \
71 libgnunet_plugin_datacache_postgres_la_SOURCES = \
72 plugin_datacache_postgres.c
73 libgnunet_plugin_datacache_postgres_la_LIBADD = \
74 $(top_builddir)/src/postgres/libgnunetpostgres.la \
75 $(top_builddir)/src/statistics/libgnunetstatistics.la \
76 $(top_builddir)/src/util/libgnunetutil.la \
77 $(GN_PLUGIN_LDFLAGS) -lpq
78 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
79 $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS)
80 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
81 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
83 libgnunet_plugin_datacache_template_la_SOURCES = \
84 plugin_datacache_template.c
85 libgnunet_plugin_datacache_template_la_LIBADD = \
86 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
88 libgnunet_plugin_datacache_template_la_LDFLAGS = \
99 test_datacache_sqlite \
100 test_datacache_quota_sqlite \
109 test_datacache_heap \
110 test_datacache_quota_heap \
115 POSTGRES_BENCHMARKS = \
116 perf_datacache_postgres
119 test_datacache_postgres \
120 test_datacache_quota_postgres \
121 $(POSTGRES_BENCHMARKS)
131 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
132 TESTS = $(check_PROGRAMS)
135 test_datacache_sqlite_SOURCES = \
137 test_datacache_sqlite_LDADD = \
138 $(top_builddir)/src/testing/libgnunettesting.la \
139 libgnunetdatacache.la \
140 $(top_builddir)/src/util/libgnunetutil.la
142 test_datacache_quota_sqlite_SOURCES = \
143 test_datacache_quota.c
144 test_datacache_quota_sqlite_LDADD = \
145 $(top_builddir)/src/testing/libgnunettesting.la \
146 libgnunetdatacache.la \
147 $(top_builddir)/src/util/libgnunetutil.la
149 perf_datacache_sqlite_SOURCES = \
151 perf_datacache_sqlite_LDADD = \
152 $(top_builddir)/src/testing/libgnunettesting.la \
153 libgnunetdatacache.la \
154 $(top_builddir)/src/util/libgnunetutil.la
156 test_datacache_heap_SOURCES = \
158 test_datacache_heap_LDADD = \
159 $(top_builddir)/src/testing/libgnunettesting.la \
160 libgnunetdatacache.la \
161 $(top_builddir)/src/util/libgnunetutil.la
163 test_datacache_quota_heap_SOURCES = \
164 test_datacache_quota.c
165 test_datacache_quota_heap_LDADD = \
166 $(top_builddir)/src/testing/libgnunettesting.la \
167 libgnunetdatacache.la \
168 $(top_builddir)/src/util/libgnunetutil.la
170 perf_datacache_heap_SOURCES = \
172 perf_datacache_heap_LDADD = \
173 $(top_builddir)/src/testing/libgnunettesting.la \
174 libgnunetdatacache.la \
175 $(top_builddir)/src/util/libgnunetutil.la
177 test_datacache_postgres_SOURCES = \
179 test_datacache_postgres_LDADD = \
180 $(top_builddir)/src/testing/libgnunettesting.la \
181 libgnunetdatacache.la \
182 $(top_builddir)/src/util/libgnunetutil.la
184 test_datacache_quota_postgres_SOURCES = \
185 test_datacache_quota.c
186 test_datacache_quota_postgres_LDADD = \
187 $(top_builddir)/src/testing/libgnunettesting.la \
188 libgnunetdatacache.la \
189 $(top_builddir)/src/util/libgnunetutil.la
191 perf_datacache_postgres_SOURCES = \
193 perf_datacache_postgres_LDADD = \
194 $(top_builddir)/src/testing/libgnunettesting.la \
195 libgnunetdatacache.la \
196 $(top_builddir)/src/util/libgnunetutil.la
199 test_datacache_data_sqlite.conf \
200 perf_datacache_data_sqlite.conf \
201 test_datacache_data_heap.conf \
202 perf_datacache_data_heap.conf \
203 test_datacache_data_postgres.conf \
204 perf_datacache_data_postgres.conf