global reindent, now with uncrustify hook enabled
[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_serialization.h \
74  credential_misc.c \
75  credential_misc.h
76 libgnunetcredential_la_LIBADD = \
77  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
78 libgnunetcredential_la_LDFLAGS = \
79   $(GN_LIB_LDFLAGS)
80
81
82
83 check_SCRIPTS = \
84   test_credential_issue.sh \
85         test_credential_verify_simple.sh \
86         test_credential_verify.sh \
87         test_credential_verify_and.sh
88
89 if ENABLE_TEST_RUN
90 if HAVE_SQLITE
91  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
92  TESTS = $(check_SCRIPTS)
93 endif
94 endif
95
96 #libgnunet_plugin_rest_credential_la_SOURCES = \
97 #  plugin_rest_credential.c
98 #libgnunet_plugin_rest_credential_la_LIBADD = \
99 #  $(top_builddir)/src/credential/libgnunetcredential.la \
100 #       $(top_builddir)/src/rest/libgnunetrest.la \
101 #       $(top_builddir)/src/identity/libgnunetidentity.la \
102 #  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
103 #  $(LTLIBINTL) -ljansson $(MHD_LIBS)
104 #libgnunet_plugin_rest_credential_la_LDFLAGS = \
105 # $(GN_PLUGIN_LDFLAGS)
106 #libgnunet_plugin_rest_credential_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
107
108
109
110
111