- Refactor jsonapi into separate module
[oweals/gnunet.git] / src / namestore / Makefile.am
index 2233b5cad33aabff5cda988127410fcf96cc82c1..cf47e8507d4a8eca808abdf2874e32517b0c9400 100644 (file)
@@ -71,6 +71,10 @@ check_PROGRAMS = \
  $(TESTING_TESTS)
 endif
 
+if HAVE_REST
+REST_PLUGIN=libgnunet_plugin_rest_namestore.la
+endif
+
 if ENABLE_TEST_RUN
 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
 TESTS = \
@@ -81,10 +85,6 @@ endif
 lib_LTLIBRARIES = \
   libgnunetnamestore.la
 
-if HAVE_REST
-lib_LTLIBRARIES += libgnunet_plugin_rest_namestore.la
-endif
-
 
 libgnunetnamestore_la_SOURCES = \
   namestore_api.c \
@@ -148,7 +148,10 @@ gnunet_service_namestore_LDADD = \
 plugin_LTLIBRARIES = \
   $(SQLITE_PLUGIN) \
   $(POSTGRES_PLUGIN) \
-       $(FLAT_PLUGIN)
+       $(FLAT_PLUGIN) \
+       $(REST_PLUGIN)
+
+
 
 libgnunet_plugin_namestore_flat_la_SOURCES = \
   plugin_namestore_flat.c
@@ -176,6 +179,7 @@ libgnunet_plugin_namestore_postgres_la_SOURCES = \
 libgnunet_plugin_namestore_postgres_la_LIBADD = \
   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
   $(top_builddir)/src/postgres/libgnunetpostgres.la  \
+  $(top_builddir)/src/pq/libgnunetpq.la  \
   $(top_builddir)/src/statistics/libgnunetstatistics.la \
   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
   $(LTLIBINTL)
@@ -186,7 +190,9 @@ libgnunet_plugin_rest_namestore_la_SOURCES = \
   plugin_rest_namestore.c
 libgnunet_plugin_rest_namestore_la_LIBADD = \
   libgnunetnamestore.la \
-       $(top_builddir)/src/identity/libgnunetidentity.la \
+  $(top_builddir)/src/rest/libgnunetrest.la \
+  $(top_builddir)/src/identity/libgnunetidentity.la \
+       $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
   $(LTLIBINTL) -ljansson -lmicrohttpd
 libgnunet_plugin_rest_namestore_la_LDFLAGS = \