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 \
45 libgnunet_plugin_datacache_template.la
48 libgnunet_plugin_datacache_sqlite_la_SOURCES = \
49 plugin_datacache_sqlite.c
50 libgnunet_plugin_datacache_sqlite_la_LIBADD = \
51 $(top_builddir)/src/statistics/libgnunetstatistics.la \
52 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
54 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
57 libgnunet_plugin_datacache_heap_la_SOURCES = \
58 plugin_datacache_heap.c
59 libgnunet_plugin_datacache_heap_la_LIBADD = \
60 $(top_builddir)/src/statistics/libgnunetstatistics.la \
61 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
63 libgnunet_plugin_datacache_heap_la_LDFLAGS = \
66 libgnunet_plugin_datacache_postgres_la_SOURCES = \
67 plugin_datacache_postgres.c
68 libgnunet_plugin_datacache_postgres_la_LIBADD = \
69 $(top_builddir)/src/postgres/libgnunetpostgres.la \
70 $(top_builddir)/src/statistics/libgnunetstatistics.la \
71 $(top_builddir)/src/util/libgnunetutil.la \
72 $(GN_PLUGIN_LDFLAGS) -lpq
73 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
74 $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS)
75 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
76 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
78 libgnunet_plugin_datacache_template_la_SOURCES = \
79 plugin_datacache_template.c
80 libgnunet_plugin_datacache_template_la_LIBADD = \
81 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
83 libgnunet_plugin_datacache_template_la_LDFLAGS = \
94 test_datacache_sqlite \
95 test_datacache_quota_sqlite \
104 test_datacache_heap \
105 test_datacache_quota_heap \
110 POSTGRES_BENCHMARKS = \
111 perf_datacache_postgres
114 test_datacache_postgres \
115 test_datacache_quota_postgres \
116 $(POSTGRES_BENCHMARKS)
126 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
127 TESTS = $(check_PROGRAMS)
130 test_datacache_sqlite_SOURCES = \
132 test_datacache_sqlite_LDADD = \
133 $(top_builddir)/src/testing/libgnunettesting.la \
134 libgnunetdatacache.la \
135 $(top_builddir)/src/util/libgnunetutil.la
137 test_datacache_quota_sqlite_SOURCES = \
138 test_datacache_quota.c
139 test_datacache_quota_sqlite_LDADD = \
140 $(top_builddir)/src/testing/libgnunettesting.la \
141 libgnunetdatacache.la \
142 $(top_builddir)/src/util/libgnunetutil.la
144 perf_datacache_sqlite_SOURCES = \
146 perf_datacache_sqlite_LDADD = \
147 $(top_builddir)/src/testing/libgnunettesting.la \
148 libgnunetdatacache.la \
149 $(top_builddir)/src/util/libgnunetutil.la
151 test_datacache_heap_SOURCES = \
153 test_datacache_heap_LDADD = \
154 $(top_builddir)/src/testing/libgnunettesting.la \
155 libgnunetdatacache.la \
156 $(top_builddir)/src/util/libgnunetutil.la
158 test_datacache_quota_heap_SOURCES = \
159 test_datacache_quota.c
160 test_datacache_quota_heap_LDADD = \
161 $(top_builddir)/src/testing/libgnunettesting.la \
162 libgnunetdatacache.la \
163 $(top_builddir)/src/util/libgnunetutil.la
165 perf_datacache_heap_SOURCES = \
167 perf_datacache_heap_LDADD = \
168 $(top_builddir)/src/testing/libgnunettesting.la \
169 libgnunetdatacache.la \
170 $(top_builddir)/src/util/libgnunetutil.la
172 test_datacache_postgres_SOURCES = \
174 test_datacache_postgres_LDADD = \
175 $(top_builddir)/src/testing/libgnunettesting.la \
176 libgnunetdatacache.la \
177 $(top_builddir)/src/util/libgnunetutil.la
179 test_datacache_quota_postgres_SOURCES = \
180 test_datacache_quota.c
181 test_datacache_quota_postgres_LDADD = \
182 $(top_builddir)/src/testing/libgnunettesting.la \
183 libgnunetdatacache.la \
184 $(top_builddir)/src/util/libgnunetutil.la
186 perf_datacache_postgres_SOURCES = \
188 perf_datacache_postgres_LDADD = \
189 $(top_builddir)/src/testing/libgnunettesting.la \
190 libgnunetdatacache.la \
191 $(top_builddir)/src/util/libgnunetutil.la
194 test_datacache_data_sqlite.conf \
195 perf_datacache_data_sqlite.conf \
196 test_datacache_data_heap.conf \
197 perf_datacache_data_heap.conf \
198 test_datacache_data_postgres.conf \
199 perf_datacache_data_postgres.conf