convert fs publish to MQ
[oweals/gnunet.git] / src / identity / Makefile.am
index 64bf9410978407e74e1f66e2402c1761dceba594..c6f6625f4c46fe7fbaf3eefaab0837c8b170620e 100644 (file)
@@ -1,7 +1,7 @@
 # This Makefile.am is in the public domain
 AM_CPPFLAGS = -I$(top_srcdir)/src/include
 
- plugindir = $(libdir)/gnunet
+plugindir = $(libdir)/gnunet
 
 if MINGW
  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
@@ -21,7 +21,6 @@ pkgcfg_DATA = \
 
 lib_LTLIBRARIES = \
        libgnunetidentity.la
-#      libgnunet_plugin_gnsrecord_identity.la
 
 libgnunetidentity_la_SOURCES = \
   identity_api.c \
@@ -40,10 +39,14 @@ bin_PROGRAMS = \
 libexec_PROGRAMS = \
  gnunet-service-identity 
 
-if HAVE_REST
-bin_PROGRAMS += \
-                                                               gnunet-identity-token
+if HAVE_MHD
+if HAVE_JSON
+plugin_LTLIBRARIES = \
+  libgnunet_plugin_rest_identity.la \
+  libgnunet_plugin_gnsrecord_identity.la
 endif
+endif
+
 
 gnunet_service_identity_SOURCES = \
  gnunet-service-identity.c         
@@ -61,6 +64,19 @@ libgnunet_plugin_gnsrecord_identity_la_LDFLAGS = \
  $(GN_PLUGIN_LDFLAGS)
 
 
+libgnunet_plugin_rest_identity_la_SOURCES = \
+  plugin_rest_identity.c
+libgnunet_plugin_rest_identity_la_LIBADD = \
+       libgnunetidentity.la \
+  $(top_builddir)/src/rest/libgnunetrest.la \
+       $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
+  $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
+  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
+  $(LTLIBINTL) -ljansson -lmicrohttpd
+libgnunet_plugin_rest_identity_la_LDFLAGS = \
+ $(GN_PLUGIN_LDFLAGS)
+
+
 gnunet_identity_SOURCES = \
  gnunet-identity.c         
 gnunet_identity_LDADD = \
@@ -69,13 +85,6 @@ gnunet_identity_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(GN_LIBINTL)
 
-gnunet_identity_token_SOURCES = \
- check_token.c         
-gnunet_identity_token_LDADD = \
-  $(top_builddir)/src/util/libgnunetutil.la \
-  -ljansson -lmicrohttpd \
-  $(GN_LIBINTL)
-
 if HAVE_TESTING
 check_PROGRAMS = \
  test_identity \