add copying rest plugin
[oweals/gnunet.git] / src / rest / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 plugindir = $(libdir)/gnunet
5
6 pkgcfgdir= $(pkgdatadir)/config.d/
7
8 libexecdir= $(pkglibdir)/libexec/
9
10 pkgcfg_DATA = \
11    rest.conf
12
13
14 if MINGW
15   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
16 endif
17
18 if USE_COVERAGE
19   AM_CFLAGS = --coverage -O0
20   XLIBS = -lgcov
21 endif
22
23 lib_LTLIBRARIES = \
24         libgnunetrest.la 
25
26 libexec_PROGRAMS = \
27  gnunet-rest-server
28
29 EXTRA_DIST = \
30  rest.conf
31
32 plugin_LTLIBRARIES = libgnunet_plugin_rest_copying.la
33
34 libgnunet_plugin_rest_copying_la_SOURCES = \
35   plugin_rest_copying.c
36 libgnunet_plugin_rest_copying_la_LIBADD = \
37         $(top_builddir)/src/rest/libgnunetrest.la \
38         $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
39   $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
40   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
41   $(LTLIBINTL) -ljansson -lmicrohttpd
42 libgnunet_plugin_rest_copying_la_LDFLAGS = \
43  $(GN_PLUGIN_LDFLAGS)
44
45
46 gnunet_rest_server_SOURCES = \
47  gnunet-rest-server.c
48
49 gnunet_rest_server_LDADD = \
50   $(top_builddir)/src/util/libgnunetutil.la \
51   $(GN_LIBINTL) -lmicrohttpd
52
53 libgnunetrest_la_SOURCES = \
54   rest.c
55 libgnunetrest_la_LIBADD = \
56   $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
57   $(GN_LIBINTL) -lmicrohttpd 
58 libgnunetrest_la_LDFLAGS = \
59   $(GN_LIB_LDFLAGS) \
60   -version-info 0:0:0
61