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/namestore/libgnunetnamestore.la \
79 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
80 $(top_builddir)/src/util/libgnunetutil.la \
81 libgnunetnamecache.la \
83 gnunet_namecache_DEPENDENCIES = \
84 $(top_builddir)/src/identity/libgnunetidentity.la \
85 $(top_builddir)/src/util/libgnunetutil.la \
89 gnunet_service_namecache_SOURCES = \
90 gnunet-service-namecache.c
92 gnunet_service_namecache_LDADD = \
93 $(top_builddir)/src/namestore/libgnunetnamestore.la \
94 $(top_builddir)/src/statistics/libgnunetstatistics.la \
95 $(top_builddir)/src/util/libgnunetutil.la \
96 libgnunetnamecache.la \
98 gnunet_service_namecache_DEPENDENCIES = \
99 $(top_builddir)/src/statistics/libgnunetstatistics.la \
100 $(top_builddir)/src/util/libgnunetutil.la \
101 libgnunetnamecache.la
104 plugin_LTLIBRARIES = \
108 libgnunet_plugin_namecache_sqlite_la_SOURCES = \
109 plugin_namecache_sqlite.c
110 libgnunet_plugin_namecache_sqlite_la_LIBADD = \
111 $(top_builddir)/src/namecache/libgnunetnamecache.la \
112 $(top_builddir)/src/statistics/libgnunetstatistics.la \
113 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
115 libgnunet_plugin_namecache_sqlite_la_LDFLAGS = \
117 libgnunet_plugin_namecache_sqlite_la_DEPENDENCIES = \
118 $(top_builddir)/src/statistics/libgnunetstatistics.la \
119 $(top_builddir)/src/util/libgnunetutil.la \
120 libgnunetnamecache.la
123 libgnunet_plugin_namecache_postgres_la_SOURCES = \
124 plugin_namecache_postgres.c
125 libgnunet_plugin_namecache_postgres_la_LIBADD = \
126 $(top_builddir)/src/namecache/libgnunetnamecache.la \
127 $(top_builddir)/src/postgres/libgnunetpostgres.la \
128 $(top_builddir)/src/statistics/libgnunetstatistics.la \
129 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
131 libgnunet_plugin_namecache_postgres_la_LDFLAGS = \
133 libgnunet_plugin_namecache_postgres_la_DEPENDENCIES = \
134 $(top_builddir)/src/postgres/libgnunetpostgres.la \
135 $(top_builddir)/src/statistics/libgnunetstatistics.la \
136 $(top_builddir)/src/util/libgnunetutil.la \
137 libgnunetnamecache.la
139 test_namecache_api_cache_block_SOURCES = \
140 test_namecache_api_cache_block.c
141 test_namecache_api_cache_block_LDADD = \
142 $(top_builddir)/src/namestore/libgnunetnamestore.la \
143 $(top_builddir)/src/namecache/libgnunetnamecache.la \
144 $(top_builddir)/src/testing/libgnunettesting.la \
145 $(top_builddir)/src/util/libgnunetutil.la
147 test_plugin_namecache_sqlite_SOURCES = \
148 test_plugin_namecache.c
149 test_plugin_namecache_sqlite_LDADD = \
150 $(top_builddir)/src/testing/libgnunettesting.la \
151 $(top_builddir)/src/util/libgnunetutil.la
153 test_plugin_namecache_postgres_SOURCES = \
154 test_plugin_namecache.c
155 test_plugin_namecache_postgres_LDADD = \
156 $(top_builddir)/src/testing/libgnunettesting.la \
157 $(top_builddir)/src/util/libgnunetutil.la
160 test_namecache_api.conf \
161 test_plugin_namecache_sqlite.conf \
162 test_plugin_namecache_postgres.conf \
163 test_namecache_defaults.conf