Merge remote-tracking branch 'origin/master' into credentials
[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 #  test_gns_nick_shorten.conf \
8 ####  test_gns_proxy.conf \
9 #  test_gns_simple_lookup.conf \
10 #  gns-helper-service-w32.conf \
11 #  w32nsp.def \
12 #  gnunet-gns-proxy-setup-ca \
13 #  zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
14 #  zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
15 #  zonefiles/test_zonekey \
16 #  $(check_SCRIPTS)
17
18
19 if USE_COVERAGE
20   AM_CFLAGS = --coverage -O0
21 endif
22
23 pkgcfgdir = $(pkgdatadir)/config.d/
24
25 libexecdir= $(pkglibdir)/libexec/
26
27 plugindir = $(libdir)/gnunet
28
29 pkgcfg_DATA = \
30   credential.conf
31
32
33 # /usr/lib - compiles a layer which can be used to be communicagte with the service
34 lib_LTLIBRARIES = \
35   libgnunetcredential.la
36
37 # /usr/lib/gnunet/libexec - Business logic . Separate process 
38 libexec_PROGRAMS = \
39   gnunet-service-credential 
40
41 bin_PROGRAMS = \
42   gnunet-credential
43
44 plugin_LTLIBRARIES = \
45   libgnunet_plugin_gnsrecord_credential.la
46
47
48 #if HAVE_MHD
49 #if HAVE_JSON
50 #plugin_LTLIBRARIES += libgnunet_plugin_rest_gns.la
51 #endif
52 #endif
53
54
55 gnunet_credential_SOURCES = \
56  gnunet-credential.c
57 gnunet_credential_LDADD = \
58   libgnunetcredential.la \
59   $(top_builddir)/src/util/libgnunetutil.la \
60   $(top_builddir)/src/identity/libgnunetidentity.la \
61   $(GN_LIBINTL)
62
63
64 libgnunet_plugin_gnsrecord_credential_la_SOURCES = \
65   plugin_gnsrecord_credential.c
66 libgnunet_plugin_gnsrecord_credential_la_LIBADD = \
67   $(top_builddir)/src/util/libgnunetutil.la \
68   $(LTLIBINTL)
69 libgnunet_plugin_gnsrecord_credential_la_LDFLAGS = \
70  $(GN_PLUGIN_LDFLAGS)
71
72
73
74 gnunet_service_credential_SOURCES = \
75  gnunet-service-credential.c 
76 gnunet_service_credential_LDADD = \
77   $(top_builddir)/src/util/libgnunetutil.la \
78         $(top_builddir)/src/gns/libgnunetgns.la \
79   $(top_builddir)/src/statistics/libgnunetstatistics.la \
80   $(GN_LIBINTL)
81
82
83 libgnunetcredential_la_SOURCES = \
84  credential_api.c credential.h
85 libgnunetcredential_la_LIBADD = \
86  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) 
87 libgnunetcredential_la_LDFLAGS = \
88   $(GN_LIB_LDFLAGS)
89
90
91 #libgnunet_plugin_rest_gns_la_SOURCES = \
92 #  plugin_rest_gns.c
93 #libgnunet_plugin_rest_gns_la_LIBADD = \
94 #  libgnunetgns.la \
95 #       $(top_builddir)/src/rest/libgnunetrest.la \
96 #  $(top_builddir)/src/identity/libgnunetidentity.la \
97 #       $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
98 #  $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
99 #  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
100 #  $(LTLIBINTL) -ljansson -lmicrohttpd
101 #libgnunet_plugin_rest_gns_la_LDFLAGS = \
102 # $(GN_PLUGIN_LDFLAGS)
103
104
105 #check_SCRIPTS = \
106   #test_gns_lookup.sh 
107
108 if ENABLE_TEST_RUN
109 if HAVE_SQLITE
110  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
111  TESTS = $(check_SCRIPTS)
112 endif
113 endif