1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
6 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
10 AM_CFLAGS = --coverage -O0
18 libgnunetdatastore_la_SOURCES = \
19 datastore_api.c datastore.h
20 libgnunetdatastore_la_LIBADD = \
21 $(top_builddir)/src/statistics/libgnunetstatistics.la \
22 $(top_builddir)/src/util/libgnunetutil.la \
24 libgnunetdatastore_la_LDFLAGS = \
25 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
30 gnunet-service-datastore
32 gnunet_service_datastore_SOURCES = \
33 gnunet-service-datastore.c
34 gnunet_service_datastore_LDADD = \
35 $(top_builddir)/src/statistics/libgnunetstatistics.la \
36 $(top_builddir)/src/util/libgnunetutil.la \
41 MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
43 test_datastore_api_mysql \
44 test_datastore_api_management_mysql \
45 perf_datastore_api_mysql \
46 perf_plugin_datastore_mysql
50 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
52 test_datastore_api_sqlite \
53 test_datastore_api_management_sqlite \
54 perf_datastore_api_sqlite \
55 perf_plugin_datastore_sqlite
59 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
61 test_datastore_api_postgres \
62 test_datastore_api_management_postgres \
63 perf_datastore_api_postgres \
64 perf_plugin_datastore_postgres
68 plugin_LTLIBRARIES = \
72 libgnunet_plugin_datastore_template.la
75 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
76 plugin_datastore_sqlite.c
77 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
78 $(top_builddir)/src/statistics/libgnunetstatistics.la \
79 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
80 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
84 libgnunet_plugin_datastore_mysql_la_SOURCES = \
85 plugin_datastore_mysql.c
86 libgnunet_plugin_datastore_mysql_la_LIBADD = \
87 $(top_builddir)/src/statistics/libgnunetstatistics.la \
88 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lmysqlclient
89 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
90 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
91 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
94 libgnunet_plugin_datastore_postgres_la_SOURCES = \
95 plugin_datastore_postgres.c
96 libgnunet_plugin_datastore_postgres_la_LIBADD = \
97 $(top_builddir)/src/statistics/libgnunetstatistics.la \
98 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
99 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
100 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
101 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
105 libgnunet_plugin_datastore_template_la_SOURCES = \
106 plugin_datastore_template.c
107 libgnunet_plugin_datastore_template_la_LIBADD = \
108 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
109 libgnunet_plugin_datastore_template_la_LDFLAGS = \
118 TESTS = $(check_PROGRAMS)
121 test_datastore_api_sqlite_SOURCES = \
123 test_datastore_api_sqlite_LDADD = \
124 $(top_builddir)/src/datastore/libgnunetdatastore.la \
125 $(top_builddir)/src/util/libgnunetutil.la
127 test_datastore_api_management_sqlite_SOURCES = \
128 test_datastore_api_management.c
129 test_datastore_api_management_sqlite_LDADD = \
130 $(top_builddir)/src/datastore/libgnunetdatastore.la \
131 $(top_builddir)/src/util/libgnunetutil.la
133 perf_datastore_api_sqlite_SOURCES = \
135 perf_datastore_api_sqlite_LDADD = \
136 $(top_builddir)/src/datastore/libgnunetdatastore.la \
137 $(top_builddir)/src/util/libgnunetutil.la
139 perf_plugin_datastore_sqlite_SOURCES = \
140 perf_plugin_datastore.c
141 perf_plugin_datastore_sqlite_LDADD = \
142 $(top_builddir)/src/util/libgnunetutil.la
145 test_datastore_api_mysql_SOURCES = \
147 test_datastore_api_mysql_LDADD = \
148 $(top_builddir)/src/datastore/libgnunetdatastore.la \
149 $(top_builddir)/src/util/libgnunetutil.la
151 test_datastore_api_management_mysql_SOURCES = \
152 test_datastore_api_management.c
153 test_datastore_api_management_mysql_LDADD = \
154 $(top_builddir)/src/datastore/libgnunetdatastore.la \
155 $(top_builddir)/src/util/libgnunetutil.la
157 perf_datastore_api_mysql_SOURCES = \
159 perf_datastore_api_mysql_LDADD = \
160 $(top_builddir)/src/datastore/libgnunetdatastore.la \
161 $(top_builddir)/src/util/libgnunetutil.la
163 perf_plugin_datastore_mysql_SOURCES = \
164 perf_plugin_datastore.c
165 perf_plugin_datastore_mysql_LDADD = \
166 $(top_builddir)/src/util/libgnunetutil.la
169 test_datastore_api_postgres_SOURCES = \
171 test_datastore_api_postgres_LDADD = \
172 $(top_builddir)/src/datastore/libgnunetdatastore.la \
173 $(top_builddir)/src/util/libgnunetutil.la
175 test_datastore_api_management_postgres_SOURCES = \
176 test_datastore_api_management.c
177 test_datastore_api_management_postgres_LDADD = \
178 $(top_builddir)/src/datastore/libgnunetdatastore.la \
179 $(top_builddir)/src/util/libgnunetutil.la
181 perf_datastore_api_postgres_SOURCES = \
183 perf_datastore_api_postgres_LDADD = \
184 $(top_builddir)/src/datastore/libgnunetdatastore.la \
185 $(top_builddir)/src/util/libgnunetutil.la
187 perf_plugin_datastore_postgres_SOURCES = \
188 perf_plugin_datastore.c
189 perf_plugin_datastore_postgres_LDADD = \
190 $(top_builddir)/src/util/libgnunetutil.la
194 test_datastore_api_data_sqlite.conf \
195 perf_plugin_datastore_data_sqlite.conf \
196 test_datastore_api_data_mysql.conf \
197 perf_plugin_datastore_data_mysql.conf \
198 test_datastore_api_data_postgres.conf \
199 perf_plugin_datastore_data_postgres.conf