5f3b602701724f77fe589c917189a9ea639cf474
[oweals/gnunet.git] / src / credential / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 EXTRA_DIST = \
5   test_credential_defaults.conf \
6   test_credential_lookup.conf
7
8
9 if USE_COVERAGE
10   AM_CFLAGS = --coverage -O0
11 endif
12
13 pkgcfgdir = $(pkgdatadir)/config.d/
14
15 libexecdir= $(pkglibdir)/libexec/
16
17 plugindir = $(libdir)/gnunet
18
19 pkgcfg_DATA = \
20   credential.conf
21
22
23 # /usr/lib - compiles a layer which can be used to be communicagte with the service
24 lib_LTLIBRARIES = \
25   libgnunetcredential.la
26
27 # /usr/lib/gnunet/libexec - Business logic . Separate process 
28 libexec_PROGRAMS = \
29   gnunet-service-credential 
30
31 bin_PROGRAMS = \
32   gnunet-credential
33
34 plugin_LTLIBRARIES = \
35   libgnunet_plugin_gnsrecord_credential.la
36
37
38 if HAVE_MHD
39 if HAVE_JSON
40 plugin_LTLIBRARIES += libgnunet_plugin_rest_credential.la
41 endif
42 endif
43
44
45 gnunet_credential_SOURCES = \
46  gnunet-credential.c
47 gnunet_credential_LDADD = \
48   libgnunetcredential.la \
49   $(top_builddir)/src/util/libgnunetutil.la \
50         $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
51   $(top_builddir)/src/identity/libgnunetidentity.la \
52   $(GN_LIBINTL)
53
54
55 libgnunet_plugin_gnsrecord_credential_la_SOURCES = \
56   plugin_gnsrecord_credential.c
57 libgnunet_plugin_gnsrecord_credential_la_LIBADD = \
58         libgnunetcredential.la \
59   $(top_builddir)/src/util/libgnunetutil.la \
60   $(LTLIBINTL)
61 libgnunet_plugin_gnsrecord_credential_la_LDFLAGS = \
62  $(GN_PLUGIN_LDFLAGS)
63
64
65
66 gnunet_service_credential_SOURCES = \
67  gnunet-service-credential.c
68 gnunet_service_credential_LDADD = \
69         libgnunetcredential.la \
70   $(top_builddir)/src/util/libgnunetutil.la \
71         $(top_builddir)/src/gns/libgnunetgns.la \
72   $(top_builddir)/src/statistics/libgnunetstatistics.la \
73   $(GN_LIBINTL)
74
75
76 libgnunetcredential_la_SOURCES = \
77  credential_api.c credential.h \
78  credential_serialization.c
79 libgnunetcredential_la_LIBADD = \
80  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) 
81 libgnunetcredential_la_LDFLAGS = \
82   $(GN_LIB_LDFLAGS)
83
84
85 libgnunet_plugin_rest_credential_la_SOURCES = \
86   plugin_rest_credential.c
87 libgnunet_plugin_rest_credential_la_LIBADD = \
88   libgnunetcredential.la \
89         $(top_builddir)/src/rest/libgnunetrest.la \
90         $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
91   $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
92   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
93   $(LTLIBINTL) -ljansson -lmicrohttpd
94 libgnunet_plugin_rest_credential_la_LDFLAGS = \
95  $(GN_PLUGIN_LDFLAGS)
96
97
98 check_SCRIPTS = \
99   test_credential_issue.sh \
100         test_credential_verify_simple.sh \
101         test_credential_verify.sh \
102         test_credential_verify_and.sh
103
104 if ENABLE_TEST_RUN
105 if HAVE_SQLITE
106  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
107  TESTS = $(check_SCRIPTS)
108 endif
109 endif