e85c3cc2d32718195bce19808941c783488c3945
[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/gnsrecord/libgnunetgnsrecord.la \
61   $(top_builddir)/src/identity/libgnunetidentity.la \
62   $(GN_LIBINTL)
63
64
65 libgnunet_plugin_gnsrecord_credential_la_SOURCES = \
66   plugin_gnsrecord_credential.c
67 libgnunet_plugin_gnsrecord_credential_la_LIBADD = \
68   $(top_builddir)/src/util/libgnunetutil.la \
69   $(LTLIBINTL)
70 libgnunet_plugin_gnsrecord_credential_la_LDFLAGS = \
71  $(GN_PLUGIN_LDFLAGS)
72
73
74
75 gnunet_service_credential_SOURCES = \
76  gnunet-service-credential.c 
77 gnunet_service_credential_LDADD = \
78   $(top_builddir)/src/util/libgnunetutil.la \
79         $(top_builddir)/src/gns/libgnunetgns.la \
80   $(top_builddir)/src/statistics/libgnunetstatistics.la \
81   $(GN_LIBINTL)
82
83
84 libgnunetcredential_la_SOURCES = \
85  credential_api.c credential.h
86 libgnunetcredential_la_LIBADD = \
87  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) 
88 libgnunetcredential_la_LDFLAGS = \
89   $(GN_LIB_LDFLAGS)
90
91
92 #libgnunet_plugin_rest_gns_la_SOURCES = \
93 #  plugin_rest_gns.c
94 #libgnunet_plugin_rest_gns_la_LIBADD = \
95 #  libgnunetgns.la \
96 #       $(top_builddir)/src/rest/libgnunetrest.la \
97 #  $(top_builddir)/src/identity/libgnunetidentity.la \
98 #       $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
99 #  $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
100 #  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
101 #  $(LTLIBINTL) -ljansson -lmicrohttpd
102 #libgnunet_plugin_rest_gns_la_LDFLAGS = \
103 # $(GN_PLUGIN_LDFLAGS)
104
105
106 #check_SCRIPTS = \
107   #test_gns_lookup.sh 
108
109 if ENABLE_TEST_RUN
110 if HAVE_SQLITE
111  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
112  TESTS = $(check_SCRIPTS)
113 endif
114 endif