- fix warnings
[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         libgnunet_plugin_rest_identity_provider.la
25
26 bin_PROGRAMS = \
27  gnunet-identity-token
28
29 libexec_PROGRAMS = \
30  gnunet-service-identity-provider
31
32 gnunet_service_identity_provider_SOURCES = \
33  gnunet-service-identity-provider.c \
34  identity_token.c
35 gnunet_service_identity_provider_LDADD = \
36  $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
37  $(top_builddir)/src/util/libgnunetutil.la \
38  $(top_builddir)/src/namestore/libgnunetnamestore.la \
39  $(top_builddir)/src/identity/libgnunetidentity.la \
40  $(top_builddir)/src/statistics/libgnunetstatistics.la \
41  $(top_builddir)/src/gns/libgnunetgns.la \
42  $(GN_LIBINTL) \
43  -ljansson
44
45 libgnunetidentityprovider_la_SOURCES = \
46  identity_provider_api.c \
47  identity_provider.h
48 libgnunetidentityprovider_la_LIBADD = \
49   $(top_builddir)/src/util/libgnunetutil.la \
50         $(GN_LIBINTL) $(XLIB)
51 libgnunetidentityprovider_la_LDFLAGS = \
52         $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
53         -version-info 0:0:0
54
55 libgnunet_plugin_rest_identity_provider_la_SOURCES = \
56   plugin_rest_identity_provider.c
57 libgnunet_plugin_rest_identity_provider_la_LIBADD = \
58         $(top_builddir)/src/identity/libgnunetidentity.la \
59         libgnunetidentityprovider.la \
60         $(top_builddir)/src/rest/libgnunetrest.la \
61         $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
62         $(top_builddir)/src/namestore/libgnunetnamestore.la \
63   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
64   $(LTLIBINTL) -ljansson -lmicrohttpd
65 libgnunet_plugin_rest_identity_provider_la_LDFLAGS = \
66  $(GN_PLUGIN_LDFLAGS)
67
68
69 gnunet_identity_token_SOURCES = \
70  gnunet-identity-token.c
71 gnunet_identity_token_LDADD = \
72   $(top_builddir)/src/util/libgnunetutil.la \
73   -ljansson -lmicrohttpd \
74   $(GN_LIBINTL)