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/
8 libexecdir= $(pkglibdir)/libexec/
15 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
19 AM_CFLAGS = --coverage -O0
24 MYSQL_PLUGIN = libgnunet_plugin_psycstore_mysql.la
26 MYSQL_TESTS = test_plugin_psycstore_mysql
31 SQLITE_PLUGIN = libgnunet_plugin_psycstore_sqlite.la
33 SQLITE_TESTS = test_plugin_psycstore_sqlite
37 lib_LTLIBRARIES = libgnunetpsycstore.la
39 libgnunetpsycstore_la_SOURCES = \
42 libgnunetpsycstore_la_LIBADD = \
43 $(top_builddir)/src/util/libgnunetutil.la \
45 libgnunetpsycstore_la_LDFLAGS = \
46 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
52 gnunet-service-psycstore
54 gnunet_service_psycstore_SOURCES = \
55 gnunet-service-psycstore.c
56 gnunet_service_psycstore_LDADD = \
57 $(top_builddir)/src/statistics/libgnunetstatistics.la \
58 $(top_builddir)/src/util/libgnunetutil.la \
59 $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
62 plugin_LTLIBRARIES = \
66 libgnunet_plugin_psycstore_mysql_la_SOURCES = \
67 plugin_psycstore_mysql.c
68 libgnunet_plugin_psycstore_mysql_la_LIBADD = \
69 libgnunetpsycstore.la \
70 $(top_builddir)/src/my/libgnunetmy.la \
71 $(top_builddir)/src/mysql/libgnunetmysql.la \
72 $(top_builddir)/src/statistics/libgnunetstatistics.la \
73 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
75 libgnunet_plugin_psycstore_mysql_la_LDFLAGS = \
79 libgnunet_plugin_psycstore_sqlite_la_SOURCES = \
80 plugin_psycstore_sqlite.c
81 libgnunet_plugin_psycstore_sqlite_la_LIBADD = \
82 libgnunetpsycstore.la \
83 $(top_builddir)/src/statistics/libgnunetstatistics.la \
84 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
86 libgnunet_plugin_psycstore_sqlite_la_LDFLAGS = \
100 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
101 TESTS = $(check_PROGRAMS)
104 test_psycstore_SOURCES = \
106 test_psycstore_LDADD = \
107 libgnunetpsycstore.la \
108 $(top_builddir)/src/testing/libgnunettesting.la \
109 $(top_builddir)/src/util/libgnunetutil.la
115 test_plugin_psycstore_sqlite_SOURCES = \
116 test_plugin_psycstore.c
117 test_plugin_psycstore_sqlite_LDADD = \
118 $(top_builddir)/src/testing/libgnunettesting.la \
119 $(top_builddir)/src/util/libgnunetutil.la
121 test_plugin_psycstore_mysql_SOURCES = \
122 test_plugin_psycstore.c
123 test_plugin_psycstore_mysql_LDADD = \
124 $(top_builddir)/src/testing/libgnunettesting.la \
125 $(top_builddir)/src/util/libgnunetutil.la