- update
[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-token.conf
21
22 plugin_LTLIBRARIES = \
23         libgnunet_plugin_rest_identity_token.la \
24         libgnunetidentityprovider.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/gns/libgnunetgns.la \
41  $(GN_LIBINTL) \
42  -ljansson
43
44 libgnunetidentityprovider_la_SOURCES = \
45  identity_provider_api.c \
46  identity_provider.h
47 libgnunetidentityprovider_la_LIBADD = \
48   $(top_builddir)/src/util/libgnunetutil.la \
49         $(GN_LIBINTL) $(XLIB)
50 libgnunetidentityprovider_la_LDFLAGS = \
51         $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
52         -version-info 0:0:0
53
54 libgnunet_plugin_rest_identity_token_la_SOURCES = \
55   plugin_rest_identity_token.c
56 libgnunet_plugin_rest_identity_token_la_LIBADD = \
57         $(top_builddir)/src/identity/libgnunetidentity.la \
58         $(top_builddir)/src/rest/libgnunetrest.la \
59         $(top_builddir)/src/namestore/libgnunetnamestore.la \
60   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
61   $(LTLIBINTL) -ljansson -lmicrohttpd
62 libgnunet_plugin_rest_identity_token_la_LDFLAGS = \
63  $(GN_PLUGIN_LDFLAGS)
64
65
66 gnunet_identity_token_SOURCES = \
67  gnunet-identity-token.c         
68 gnunet_identity_token_LDADD = \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   -ljansson -lmicrohttpd \
71   $(GN_LIBINTL)
72
73