1 AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
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 \
85 gnunet_service_namecache_SOURCES = \
86 gnunet-service-namecache.c
88 gnunet_service_namecache_LDADD = \
89 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
90 $(top_builddir)/src/statistics/libgnunetstatistics.la \
91 $(top_builddir)/src/util/libgnunetutil.la \
92 libgnunetnamecache.la \
96 plugin_LTLIBRARIES = \
100 libgnunet_plugin_namecache_sqlite_la_SOURCES = \
101 plugin_namecache_sqlite.c
102 libgnunet_plugin_namecache_sqlite_la_LIBADD = \
103 libgnunetnamecache.la \
104 $(top_builddir)/src/statistics/libgnunetstatistics.la \
105 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
107 libgnunet_plugin_namecache_sqlite_la_LDFLAGS = \
111 libgnunet_plugin_namecache_postgres_la_SOURCES = \
112 plugin_namecache_postgres.c
113 libgnunet_plugin_namecache_postgres_la_LIBADD = \
114 libgnunetnamecache.la \
115 $(top_builddir)/src/postgres/libgnunetpostgres.la \
116 $(top_builddir)/src/statistics/libgnunetstatistics.la \
117 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
119 libgnunet_plugin_namecache_postgres_la_LDFLAGS = \
120 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
122 test_namecache_api_cache_block_SOURCES = \
123 test_namecache_api_cache_block.c
124 test_namecache_api_cache_block_LDADD = \
125 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
126 libgnunetnamecache.la \
127 $(top_builddir)/src/testing/libgnunettesting.la \
128 $(top_builddir)/src/util/libgnunetutil.la
130 test_plugin_namecache_sqlite_SOURCES = \
131 test_plugin_namecache.c
132 test_plugin_namecache_sqlite_LDADD = \
133 $(top_builddir)/src/testing/libgnunettesting.la \
134 $(top_builddir)/src/util/libgnunetutil.la
136 test_plugin_namecache_postgres_SOURCES = \
137 test_plugin_namecache.c
138 test_plugin_namecache_postgres_LDADD = \
139 $(top_builddir)/src/testing/libgnunettesting.la \
140 $(top_builddir)/src/util/libgnunetutil.la
143 test_namecache_api.conf \
144 test_plugin_namecache_sqlite.conf \
145 test_plugin_namecache_postgres.conf