-merge
[oweals/gnunet.git] / src / identity-provider / 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 if MINGW
7  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
8 endif
9
10 if USE_COVERAGE
11   AM_CFLAGS = --coverage -O0
12   XLIB = -lgcov
13 endif
14
15 pkgcfgdir= $(pkgdatadir)/config.d/
16
17 libexecdir= $(pkglibdir)/libexec/
18
19 pkgcfg_DATA = \
20   identity-provider.conf
21
22 lib_LTLIBRARIES = \
23   libgnunetidentityprovider.la
24 plugin_LTLIBRARIES = \
25         libgnunet_plugin_rest_identity_provider.la
26
27 bin_PROGRAMS = \
28  gnunet-identity-token \
29  gnunet-idp
30
31 libexec_PROGRAMS = \
32  gnunet-service-identity-provider
33
34 gnunet_service_identity_provider_SOURCES = \
35  gnunet-service-identity-provider.c \
36  identity_token.c
37 gnunet_service_identity_provider_LDADD = \
38  $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
39  $(top_builddir)/src/util/libgnunetutil.la \
40  $(top_builddir)/src/namestore/libgnunetnamestore.la \
41  $(top_builddir)/src/identity/libgnunetidentity.la \
42  $(top_builddir)/src/statistics/libgnunetstatistics.la \
43  $(top_builddir)/src/credential/libgnunetcredential.la \
44  $(top_builddir)/src/gns/libgnunetgns.la \
45  $(GN_LIBINTL) \
46  -ljansson
47
48 libgnunetidentityprovider_la_SOURCES = \
49  identity_provider_api.c \
50  identity_provider.h
51 libgnunetidentityprovider_la_LIBADD = \
52   $(top_builddir)/src/util/libgnunetutil.la \
53         $(GN_LIBINTL) $(XLIB)
54 libgnunetidentityprovider_la_LDFLAGS = \
55         $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
56         -version-info 0:0:0
57
58 libgnunet_plugin_rest_identity_provider_la_SOURCES = \
59   plugin_rest_identity_provider.c
60 libgnunet_plugin_rest_identity_provider_la_LIBADD = \
61         $(top_builddir)/src/identity/libgnunetidentity.la \
62         libgnunetidentityprovider.la \
63         $(top_builddir)/src/rest/libgnunetrest.la \
64         $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
65         $(top_builddir)/src/namestore/libgnunetnamestore.la \
66   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
67   $(LTLIBINTL) -ljansson -lmicrohttpd
68 libgnunet_plugin_rest_identity_provider_la_LDFLAGS = \
69  $(GN_PLUGIN_LDFLAGS)
70
71
72 gnunet_idp_SOURCES = \
73  gnunet-idp.c
74 gnunet_idp_LDADD = \
75   $(top_builddir)/src/util/libgnunetutil.la \
76         $(top_builddir)/src/namestore/libgnunetnamestore.la \
77         $(top_builddir)/src/identity/libgnunetidentity.la \
78   $(GN_LIBINTL)
79
80 gnunet_identity_token_SOURCES = \
81  gnunet-identity-token.c
82 gnunet_identity_token_LDADD = \
83   $(top_builddir)/src/util/libgnunetutil.la \
84   -ljansson -lmicrohttpd \
85   $(GN_LIBINTL)