-wip token request
[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 if HAVE_SQLITE
16 SQLITE_PLUGIN = libgnunet_plugin_identity_provider_sqlite.la
17 endif
18
19 EXTRA_DIST = \
20   test_idp_defaults.conf \
21         test_idp.conf \
22         $(check_SCRIPTS)
23
24 pkgcfgdir= $(pkgdatadir)/config.d/
25
26 libexecdir= $(pkglibdir)/libexec/
27
28 pkgcfg_DATA = \
29   identity-provider.conf
30
31 lib_LTLIBRARIES = \
32   libgnunetidentityprovider.la
33 plugin_LTLIBRARIES = \
34         libgnunet_plugin_rest_identity_provider.la \
35   libgnunet_plugin_gnsrecord_identity_provider.la \
36         $(SQLITE_PLUGIN)
37
38 bin_PROGRAMS = \
39  gnunet-idp
40
41 libexec_PROGRAMS = \
42  gnunet-service-identity-provider
43
44 libgnunet_plugin_gnsrecord_identity_provider_la_SOURCES = \
45   plugin_gnsrecord_identity_provider.c
46 libgnunet_plugin_gnsrecord_identity_provider_la_LIBADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(LTLIBINTL)
49 libgnunet_plugin_gnsrecord_identity_provider_la_LDFLAGS = \
50  $(GN_PLUGIN_LDFLAGS)
51
52 libgnunet_plugin_identity_provider_sqlite_la_SOURCES = \
53   plugin_identity_provider_sqlite.c
54 libgnunet_plugin_identity_provider_sqlite_la_LIBADD = \
55   libgnunetidentityprovider.la  \
56   $(top_builddir)/src/sq/libgnunetsq.la \
57   $(top_builddir)/src/statistics/libgnunetstatistics.la \
58   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
59   $(LTLIBINTL)
60 libgnunet_plugin_identity_provider_sqlite_la_LDFLAGS = \
61  $(GN_PLUGIN_LDFLAGS)
62
63
64
65 gnunet_service_identity_provider_SOURCES = \
66  gnunet-service-identity-provider.c
67 gnunet_service_identity_provider_LDADD = \
68  $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
69  $(top_builddir)/src/util/libgnunetutil.la \
70  $(top_builddir)/src/namestore/libgnunetnamestore.la \
71  $(top_builddir)/src/identity/libgnunetidentity.la \
72  $(top_builddir)/src/statistics/libgnunetstatistics.la \
73  $(top_builddir)/src/abe/libgnunetabe.la \
74  $(top_builddir)/src/credential/libgnunetcredential.la \
75  $(top_builddir)/src/identity-attribute/libgnunetidentityattribute.la \
76  libgnunetidentityprovider.la \
77  $(top_builddir)/src/gns/libgnunetgns.la \
78  $(GN_LIBINTL)
79
80 libgnunetidentityprovider_la_SOURCES = \
81  identity_provider_api.c \
82  identity_provider.h
83 libgnunetidentityprovider_la_LIBADD = \
84   $(top_builddir)/src/util/libgnunetutil.la \
85         $(GN_LIBINTL) $(XLIB)
86 libgnunetidentityprovider_la_LDFLAGS = \
87         $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
88         -version-info 0:0:0
89
90 libgnunet_plugin_rest_identity_provider_la_SOURCES = \
91   plugin_rest_identity_provider.c \
92         jwt.c
93 libgnunet_plugin_rest_identity_provider_la_LIBADD = \
94         $(top_builddir)/src/identity/libgnunetidentity.la \
95         libgnunetidentityprovider.la \
96         $(top_builddir)/src/rest/libgnunetrest.la \
97         $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
98         $(top_builddir)/src/identity-attribute/libgnunetidentityattribute.la \
99         $(top_builddir)/src/namestore/libgnunetnamestore.la \
100   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
101   $(LTLIBINTL) -ljansson -lmicrohttpd
102 libgnunet_plugin_rest_identity_provider_la_LDFLAGS = \
103  $(GN_PLUGIN_LDFLAGS)
104
105 gnunet_idp_SOURCES = \
106  gnunet-idp.c
107 gnunet_idp_LDADD = \
108   $(top_builddir)/src/util/libgnunetutil.la \
109         $(top_builddir)/src/namestore/libgnunetnamestore.la \
110         libgnunetidentityprovider.la \
111         $(top_builddir)/src/identity/libgnunetidentity.la \
112         $(top_builddir)/src/identity-attribute/libgnunetidentityattribute.la \
113   $(GN_LIBINTL)
114
115 check_SCRIPTS = \
116         test_idp_attribute.sh \
117         test_idp_issue.sh \
118         test_idp_consume.sh \
119   test_idp_revoke.sh
120
121 if ENABLE_TEST_RUN
122  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
123  TESTS = $(check_SCRIPTS)
124 endif