1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
5 pkgcfgdir= $(pkgdatadir)/config.d/
7 libexecdir= $(pkglibdir)/libexec/
14 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
18 AM_CFLAGS = --coverage -O0
23 SQLITE_PLUGIN = libgnunet_plugin_namecache_sqlite.la
25 SQLITE_TESTS = test_plugin_namecache_sqlite
30 POSTGRES_PLUGIN = libgnunet_plugin_namecache_postgres.la
32 POSTGRES_TESTS = test_plugin_namecache_postgres
36 # testcases do not even build yet; thus: experimental!
39 test_namecache_api_cache_block
50 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
59 libgnunetnamecache_la_SOURCES = \
62 libgnunetnamecache_la_LIBADD = \
63 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
64 $(top_builddir)/src/util/libgnunetutil.la \
66 libgnunetnamecache_la_LDFLAGS = \
67 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
72 gnunet-service-namecache
77 gnunet_namecache_SOURCES = \
79 gnunet_namecache_LDADD = \
80 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
81 $(top_builddir)/src/util/libgnunetutil.la \
82 libgnunetnamecache.la \
84 gnunet_namecache_DEPENDENCIES = \
85 $(top_builddir)/src/identity/libgnunetidentity.la \
86 $(top_builddir)/src/util/libgnunetutil.la \
90 gnunet_service_namecache_SOURCES = \
91 gnunet-service-namecache.c
93 gnunet_service_namecache_LDADD = \
94 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
95 $(top_builddir)/src/statistics/libgnunetstatistics.la \
96 $(top_builddir)/src/util/libgnunetutil.la \
97 libgnunetnamecache.la \
99 gnunet_service_namecache_DEPENDENCIES = \
100 $(top_builddir)/src/statistics/libgnunetstatistics.la \
101 $(top_builddir)/src/util/libgnunetutil.la \
102 libgnunetnamecache.la
105 plugin_LTLIBRARIES = \
109 libgnunet_plugin_namecache_sqlite_la_SOURCES = \
110 plugin_namecache_sqlite.c
111 libgnunet_plugin_namecache_sqlite_la_LIBADD = \
112 $(top_builddir)/src/namecache/libgnunetnamecache.la \
113 $(top_builddir)/src/statistics/libgnunetstatistics.la \
114 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
116 libgnunet_plugin_namecache_sqlite_la_LDFLAGS = \
118 libgnunet_plugin_namecache_sqlite_la_DEPENDENCIES = \
119 $(top_builddir)/src/statistics/libgnunetstatistics.la \
120 $(top_builddir)/src/util/libgnunetutil.la \
121 libgnunetnamecache.la
124 libgnunet_plugin_namecache_postgres_la_SOURCES = \
125 plugin_namecache_postgres.c
126 libgnunet_plugin_namecache_postgres_la_LIBADD = \
127 $(top_builddir)/src/namecache/libgnunetnamecache.la \
128 $(top_builddir)/src/postgres/libgnunetpostgres.la \
129 $(top_builddir)/src/statistics/libgnunetstatistics.la \
130 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
132 libgnunet_plugin_namecache_postgres_la_LDFLAGS = \
134 libgnunet_plugin_namecache_postgres_la_DEPENDENCIES = \
135 $(top_builddir)/src/postgres/libgnunetpostgres.la \
136 $(top_builddir)/src/statistics/libgnunetstatistics.la \
137 $(top_builddir)/src/util/libgnunetutil.la \
138 libgnunetnamecache.la
140 test_namecache_api_cache_block_SOURCES = \
141 test_namecache_api_cache_block.c
142 test_namecache_api_cache_block_LDADD = \
143 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
144 $(top_builddir)/src/namecache/libgnunetnamecache.la \
145 $(top_builddir)/src/testing/libgnunettesting.la \
146 $(top_builddir)/src/util/libgnunetutil.la
148 test_plugin_namecache_sqlite_SOURCES = \
149 test_plugin_namecache.c
150 test_plugin_namecache_sqlite_LDADD = \
151 $(top_builddir)/src/testing/libgnunettesting.la \
152 $(top_builddir)/src/util/libgnunetutil.la
154 test_plugin_namecache_postgres_SOURCES = \
155 test_plugin_namecache.c
156 test_plugin_namecache_postgres_LDADD = \
157 $(top_builddir)/src/testing/libgnunettesting.la \
158 $(top_builddir)/src/util/libgnunetutil.la
161 test_namecache_api.conf \
162 test_plugin_namecache_sqlite.conf \
163 test_plugin_namecache_postgres.conf