summaryrefslogtreecommitdiff
path: root/src/identity/Makefile.am
blob: e806f0059dc323a14b0d2fc8ee6137517ea6a2d2 (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
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include

plugindir = $(libdir)/gnunet

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

plugin_LTLIBRARIES = libgnunet_plugin_rest_identity.la

pkgcfgdir= $(pkgdatadir)/config.d/

libexecdir= $(pkglibdir)/libexec/

pkgcfg_DATA = \
  identity.conf

lib_LTLIBRARIES = \
  libgnunetidentity.la


libgnunet_plugin_rest_identity_la_SOURCES = \
  plugin_rest_identity.c
libgnunet_plugin_rest_identity_la_LIBADD = \
  libgnunetidentity.la \
  $(top_builddir)/src/rest/libgnunetrest.la \
  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
  $(LTLIBINTL) -ljansson $(MHD_LIBS)
libgnunet_plugin_rest_identity_la_LDFLAGS = \
 $(GN_PLUGIN_LDFLAGS)
libgnunet_plugin_rest_identity_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)


libgnunetidentity_la_SOURCES = \
  identity_api.c \
  identity_api_lookup.c \
  identity_api_suffix_lookup.c \
  identity.h
libgnunetidentity_la_LIBADD = \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(GN_LIBINTL) $(XLIB)
libgnunetidentity_la_LDFLAGS = \
  $(GN_LIB_LDFLAGS)   \
  -version-info 1:0:0

bin_PROGRAMS = \
 gnunet-identity

libexec_PROGRAMS = \
 gnunet-service-identity 

gnunet_service_identity_SOURCES = \
 gnunet-service-identity.c         
gnunet_service_identity_LDADD = \
  $(top_builddir)/src/statistics/libgnunetstatistics.la \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(GN_LIBINTL)


gnunet_identity_SOURCES = \
 gnunet-identity.c         
gnunet_identity_LDADD = \
  libgnunetidentity.la \
  $(top_builddir)/src/statistics/libgnunetstatistics.la \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(GN_LIBINTL)

if HAVE_TESTING
check_PROGRAMS = \
 test_identity \
 test_identity_defaults 
endif

if ENABLE_TEST_RUN
AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
TESTS = $(check_PROGRAMS) 
endif


test_identity_SOURCES = \
 test_identity.c
test_identity_LDADD = \
  libgnunetidentity.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la 

test_identity_defaults_SOURCES = \
 test_identity_defaults.c
test_identity_defaults_LDADD = \
  libgnunetidentity.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la 

EXTRA_DIST = \
  test_identity.conf