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
58 libgnunetnamecache_la_SOURCES = \
61 libgnunetnamecache_la_LIBADD = \
62 $(top_builddir)/src/util/libgnunetutil.la \
64 libgnunetnamecache_la_LDFLAGS = \
65 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
70 gnunet-service-namecache
75 gnunet_namecache_SOURCES = \
77 gnunet_namecache_LDADD = \
78 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
79 $(top_builddir)/src/util/libgnunetutil.la \
80 libgnunetnamecache.la \
82 gnunet_namecache_DEPENDENCIES = \
83 $(top_builddir)/src/identity/libgnunetidentity.la \
84 $(top_builddir)/src/util/libgnunetutil.la \
88 gnunet_service_namecache_SOURCES = \
89 gnunet-service-namecache.c
91 gnunet_service_namecache_LDADD = \
92 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
93 $(top_builddir)/src/statistics/libgnunetstatistics.la \
94 $(top_builddir)/src/util/libgnunetutil.la \
95 libgnunetnamecache.la \
97 gnunet_service_namecache_DEPENDENCIES = \
98 $(top_builddir)/src/statistics/libgnunetstatistics.la \
99 $(top_builddir)/src/util/libgnunetutil.la \
100 libgnunetnamecache.la
103 plugin_LTLIBRARIES = \
107 libgnunet_plugin_namecache_sqlite_la_SOURCES = \
108 plugin_namecache_sqlite.c
109 libgnunet_plugin_namecache_sqlite_la_LIBADD = \
110 $(top_builddir)/src/namecache/libgnunetnamecache.la \
111 $(top_builddir)/src/statistics/libgnunetstatistics.la \
112 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
114 libgnunet_plugin_namecache_sqlite_la_LDFLAGS = \
116 libgnunet_plugin_namecache_sqlite_la_DEPENDENCIES = \
117 $(top_builddir)/src/statistics/libgnunetstatistics.la \
118 $(top_builddir)/src/util/libgnunetutil.la \
119 libgnunetnamecache.la
122 libgnunet_plugin_namecache_postgres_la_SOURCES = \
123 plugin_namecache_postgres.c
124 libgnunet_plugin_namecache_postgres_la_LIBADD = \
125 $(top_builddir)/src/namecache/libgnunetnamecache.la \
126 $(top_builddir)/src/postgres/libgnunetpostgres.la \
127 $(top_builddir)/src/statistics/libgnunetstatistics.la \
128 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
130 libgnunet_plugin_namecache_postgres_la_LDFLAGS = \
132 libgnunet_plugin_namecache_postgres_la_DEPENDENCIES = \
133 $(top_builddir)/src/postgres/libgnunetpostgres.la \
134 $(top_builddir)/src/statistics/libgnunetstatistics.la \
135 $(top_builddir)/src/util/libgnunetutil.la \
136 libgnunetnamecache.la
138 test_namecache_api_cache_block_SOURCES = \
139 test_namecache_api_cache_block.c
140 test_namecache_api_cache_block_LDADD = \
141 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
142 $(top_builddir)/src/namecache/libgnunetnamecache.la \
143 $(top_builddir)/src/testing/libgnunettesting.la \
144 $(top_builddir)/src/util/libgnunetutil.la
146 test_plugin_namecache_sqlite_SOURCES = \
147 test_plugin_namecache.c
148 test_plugin_namecache_sqlite_LDADD = \
149 $(top_builddir)/src/testing/libgnunettesting.la \
150 $(top_builddir)/src/util/libgnunetutil.la
152 test_plugin_namecache_postgres_SOURCES = \
153 test_plugin_namecache.c
154 test_plugin_namecache_postgres_LDADD = \
155 $(top_builddir)/src/testing/libgnunettesting.la \
156 $(top_builddir)/src/util/libgnunetutil.la
159 test_namecache_api.conf \
160 test_plugin_namecache_sqlite.conf \
161 test_plugin_namecache_postgres.conf \
162 test_namecache_defaults.conf