summaryrefslogtreecommitdiff
path: root/src/credential/Makefile.am
blob: bc6c49deb6756a4cd9a8a5939e88f014f41b2e08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include

EXTRA_DIST = \
  test_credential_defaults.conf \
  test_credential_lookup.conf


if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
endif

pkgcfgdir = $(pkgdatadir)/config.d/

libexecdir= $(pkglibdir)/libexec/

plugindir = $(libdir)/gnunet

pkgcfg_DATA = \
  credential.conf


# /usr/lib - compiles a layer which can be used to be communicagte with the service
lib_LTLIBRARIES = \
  libgnunetcredential.la

# /usr/lib/gnunet/libexec - Business logic . Separate process
libexec_PROGRAMS = \
  gnunet-service-credential

bin_PROGRAMS = \
  gnunet-credential

plugin_LTLIBRARIES = \
  libgnunet_plugin_gnsrecord_credential.la


gnunet_credential_SOURCES = \
 gnunet-credential.c
gnunet_credential_LDADD = \
  libgnunetcredential.la \
  $(top_builddir)/src/util/libgnunetutil.la \
	$(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  $(top_builddir)/src/identity/libgnunetidentity.la \
  $(GN_LIBINTL)


libgnunet_plugin_gnsrecord_credential_la_SOURCES = \
  plugin_gnsrecord_credential.c
libgnunet_plugin_gnsrecord_credential_la_LIBADD = \
	libgnunetcredential.la \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(LTLIBINTL)
libgnunet_plugin_gnsrecord_credential_la_LDFLAGS = \
 $(GN_PLUGIN_LDFLAGS)



gnunet_service_credential_SOURCES = \
 gnunet-service-credential.c
gnunet_service_credential_LDADD = \
	libgnunetcredential.la \
  $(top_builddir)/src/util/libgnunetutil.la \
	$(top_builddir)/src/gns/libgnunetgns.la \
	$(top_builddir)/src/namestore/libgnunetnamestore.la \
  $(top_builddir)/src/statistics/libgnunetstatistics.la \
  $(GN_LIBINTL)


libgnunetcredential_la_SOURCES = \
 credential_api.c credential.h \
 credential_serialization.c \
 credential_serialization.h \
 credential_misc.c \
 credential_misc.h
libgnunetcredential_la_LIBADD = \
 $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
libgnunetcredential_la_LDFLAGS = \
  $(GN_LIB_LDFLAGS)



check_SCRIPTS = \
  test_credential_issue.sh \
	test_credential_verify_simple.sh \
	test_credential_verify.sh \
	test_credential_verify_and.sh

if ENABLE_TEST_RUN
if HAVE_SQLITE
 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
 TESTS = $(check_SCRIPTS)
endif
endif

#libgnunet_plugin_rest_credential_la_SOURCES = \
#  plugin_rest_credential.c
#libgnunet_plugin_rest_credential_la_LIBADD = \
#  $(top_builddir)/src/credential/libgnunetcredential.la \
#	$(top_builddir)/src/rest/libgnunetrest.la \
#	$(top_builddir)/src/identity/libgnunetidentity.la \
#  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
#  $(LTLIBINTL) -ljansson $(MHD_LIBS)
#libgnunet_plugin_rest_credential_la_LDFLAGS = \
# $(GN_PLUGIN_LDFLAGS)
#libgnunet_plugin_rest_credential_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)