aboutsummaryrefslogtreecommitdiff
path: root/src/service/rest/Makefile.am
blob: 69c0235cce2ae377d6110fd255b9dff3e0a72422 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include

plugindir = $(libdir)/gnunet

pkgcfgdir= $(pkgdatadir)/config.d/

libexecdir= $(pkglibdir)/libexec/

pkgcfg_DATA = \
   rest.conf

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIBS = -lgcov
endif

lib_LTLIBRARIES = \
  libgnunetrest.la 

libexec_PROGRAMS = \
  gnunet-rest-server

EXTRA_DIST = \
 rest.conf

if HAVE_JOSE
OPENID_PLUGIN = \
 openid_plugin.c \
 openid_plugin.h \
 oidc_helper.c \
 oidc_helper.h
OPENID_JOSE_LIBS = -ljose
endif

gnunet_rest_server_SOURCES = \
 gnunet-rest-server.c \
 config_plugin.c \
 config_plugin.h \
 copying_plugin.c \
 copying_plugin.h \
 identity_plugin.c \
 identity_plugin.h \
 namestore_plugin.c \
 namestore_plugin.h \
 gns_plugin.c \
 gns_plugin.h \
 $(OPENID_PLUGIN) \
 reclaim_plugin.c json_reclaim.c \
 reclaim_plugin.h json_reclaim.h
gnunet_rest_server_LDADD = \
  $(top_builddir)/src/lib/util/libgnunetutil.la \
  $(top_builddir)/src/lib/json/libgnunetjson.la \
  $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecord.la \
  $(top_builddir)/src/lib/gnsrecord/libgnunetgnsrecordjson.la \
  $(top_builddir)/src/service/identity/libgnunetidentity.la \
  $(top_builddir)/src/service/namestore/libgnunetnamestore.la \
  $(top_builddir)/src/service/gns/libgnunetgns.la \
  $(top_builddir)/src/service/reclaim/libgnunetreclaim.la \
  libgnunetrest.la \
	$(OPENID_JOSE_LIBS) \
	-ljansson \
	$(LIBGCRYPT_LIBS) \
  $(GN_LIBINTL) $(MHD_LIBS)
gnunet_rest_server_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)

libgnunetrest_la_SOURCES = \
  rest.c
libgnunetrest_la_LIBADD = \
  $(top_builddir)/src/lib/util/libgnunetutil.la $(XLIB) \
  $(GN_LIBINTL) $(MHD_LIBS)
libgnunetrest_la_LDFLAGS = \
  $(GN_LIB_LDFLAGS) \
  -version-info 0:0:0
libgnunetrest_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)