allow empty/NULL context message
[oweals/gnunet.git] / src / jsonapi / Makefile.am
index 1d3fcc760afe312f6b5a82ed9f262ed2af3dea2d..3cf3a4cd2a869d4088bf8316d20c47460ad5246a 100644 (file)
@@ -7,28 +7,43 @@ if USE_COVERAGE
 endif
 
 lib_LTLIBRARIES = \
-  libgnunetjsonapi.la
+  libgnunetjsonapi.la \
+       libgnunetjsonapiutils.la
+
+libgnunetjsonapiutils_la_LDFLAGS = \
+       -version-info 0:0:0 \
+       -no-undefined
+libgnunetjsonapiutils_la_SOURCES = \
+       jsonapi.c
+libgnunetjsonapiutils_la_LIBADD = \
+       $(top_builddir)/src/util/libgnunetutil.la \
+       $(top_builddir)/src/rest/libgnunetrest.la \
+  $(XLIB)
 
 libgnunetjsonapi_la_LDFLAGS = \
   -version-info 0:0:0 \
   -no-undefined
 libgnunetjsonapi_la_SOURCES = \
-  jsonapi.c 
+       jsonapi_document.c \
+       jsonapi_resource.c \
+       jsonapi_error.c \
+       jsonapi_relationship.c
 libgnunetjsonapi_la_LIBADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
        $(top_builddir)/src/json/libgnunetjson.la \
   -ljansson \
   $(XLIB)
 
-#check_PROGRAMS = \
-#  test_json
+check_PROGRAMS = \
+  test_jsonapi
 
-#TESTS = \
-#  $(check_PROGRAMS)
+TESTS = \
+  $(check_PROGRAMS)
 
-#test_json_SOURCES = \
-#  test_json.c
-#test_json_LDADD = \
-#  libgnunetjson.la \
-#  $(top_builddir)/src/util/libgnunetutil.la \
-#  -ljansson
+test_jsonapi_SOURCES = \
+  test_jsonapi.c
+test_jsonapi_LDADD = \
+  libgnunetjsonapi.la \
+  $(top_builddir)/src/json/libgnunetjson.la \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  -ljansson