merge conflict resolution
[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 gnunet_credential_SOURCES = \
39  gnunet-credential.c
40 gnunet_credential_LDADD = \
41   libgnunetcredential.la \
42   $(top_builddir)/src/util/libgnunetutil.la \
43         $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
44   $(top_builddir)/src/identity/libgnunetidentity.la \
45   $(GN_LIBINTL)
46
47
48 libgnunet_plugin_gnsrecord_credential_la_SOURCES = \
49   plugin_gnsrecord_credential.c
50 libgnunet_plugin_gnsrecord_credential_la_LIBADD = \
51         libgnunetcredential.la \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(LTLIBINTL)
54 libgnunet_plugin_gnsrecord_credential_la_LDFLAGS = \
55  $(GN_PLUGIN_LDFLAGS)
56
57
58
59 gnunet_service_credential_SOURCES = \
60  gnunet-service-credential.c
61 gnunet_service_credential_LDADD = \
62         libgnunetcredential.la \
63   $(top_builddir)/src/util/libgnunetutil.la \
64         $(top_builddir)/src/gns/libgnunetgns.la \
65         $(top_builddir)/src/namestore/libgnunetnamestore.la \
66   $(top_builddir)/src/statistics/libgnunetstatistics.la \
67   $(GN_LIBINTL)
68
69
70 libgnunetcredential_la_SOURCES = \
71  credential_api.c credential.h \
72  credential_serialization.c \
73  credential_misc.c
74 libgnunetcredential_la_LIBADD = \
75  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
76 libgnunetcredential_la_LDFLAGS = \
77   $(GN_LIB_LDFLAGS)
78
79
80
81 check_SCRIPTS = \
82   test_credential_issue.sh \
83         test_credential_verify_simple.sh \
84         test_credential_verify.sh \
85         test_credential_verify_and.sh
86
87 if ENABLE_TEST_RUN
88 if HAVE_SQLITE
89  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
90  TESTS = $(check_SCRIPTS)
91 endif
92 endif
93
94 #libgnunet_plugin_rest_credential_la_SOURCES = \
95 #  plugin_rest_credential.c
96 #libgnunet_plugin_rest_credential_la_LIBADD = \
97 #  $(top_builddir)/src/credential/libgnunetcredential.la \
98 #       $(top_builddir)/src/rest/libgnunetrest.la \
99 #       $(top_builddir)/src/identity/libgnunetidentity.la \
100 #  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
101 #  $(LTLIBINTL) -ljansson -lmicrohttpd
102 #libgnunet_plugin_rest_credential_la_LDFLAGS = \
103 # $(GN_PLUGIN_LDFLAGS)
104
105
106
107
108