diff options
Diffstat (limited to 'src/peerinfo/Makefile.am')
-rw-r--r-- | src/peerinfo/Makefile.am | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/peerinfo/Makefile.am b/src/peerinfo/Makefile.am index ef79d6720..3c710eb93 100644 --- a/src/peerinfo/Makefile.am +++ b/src/peerinfo/Makefile.am | |||
@@ -5,6 +5,8 @@ pkgcfgdir= $(pkgdatadir)/config.d/ | |||
5 | 5 | ||
6 | libexecdir= $(pkglibdir)/libexec/ | 6 | libexecdir= $(pkglibdir)/libexec/ |
7 | 7 | ||
8 | plugindir = $(libdir)/gnunet | ||
9 | |||
8 | pkgcfg_DATA = \ | 10 | pkgcfg_DATA = \ |
9 | peerinfo.conf | 11 | peerinfo.conf |
10 | 12 | ||
@@ -17,8 +19,29 @@ if USE_COVERAGE | |||
17 | XLIB = -lgcov | 19 | XLIB = -lgcov |
18 | endif | 20 | endif |
19 | 21 | ||
22 | if HAVE_MHD | ||
23 | if HAVE_JSON | ||
24 | REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la | ||
25 | endif | ||
26 | endif | ||
27 | |||
20 | lib_LTLIBRARIES = libgnunetpeerinfo.la | 28 | lib_LTLIBRARIES = libgnunetpeerinfo.la |
21 | 29 | ||
30 | plugin_LTLIBRARIES = $(REST_PLUGIN) | ||
31 | |||
32 | libgnunet_plugin_rest_peerinfo_la_SOURCES = \ | ||
33 | plugin_rest_peerinfo.c | ||
34 | libgnunet_plugin_rest_peerinfo_la_LIBADD = \ | ||
35 | $(top_builddir)/src/hello/libgnunethello.la \ | ||
36 | libgnunetpeerinfo.la \ | ||
37 | $(top_builddir)/src/rest/libgnunetrest.la \ | ||
38 | $(top_builddir)/src/json/libgnunetjson.la \ | ||
39 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ | ||
40 | $(LTLIBINTL) -ljansson -lmicrohttpd | ||
41 | libgnunet_plugin_rest_peerinfo_la_LDFLAGS = \ | ||
42 | $(GN_PLUGIN_LDFLAGS) | ||
43 | |||
44 | |||
22 | libgnunetpeerinfo_la_SOURCES = \ | 45 | libgnunetpeerinfo_la_SOURCES = \ |
23 | peerinfo_api.c peerinfo.h \ | 46 | peerinfo_api.c peerinfo.h \ |
24 | peerinfo_api_notify.c | 47 | peerinfo_api_notify.c |