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

plugindir = $(libdir)/gnunet

libexecdir= $(pkglibdir)/libexec/

pkgcfgdir= $(pkgdatadir)/config.d/

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

plugin_LTLIBRARIES = \
  libgnunet_plugin_reclaim_attribute_zklaim.la

lib_LTLIBRARIES = \
	libgnunetzklaim.la

libgnunetzklaim_la_SOURCES = \
  zklaim_api.c \
  zklaim_api.h
libgnunetzklaim_la_LIBADD = \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(GN_LIBINTL) $(XLIB)
libgnunetzklaim_la_LDFLAGS = \
  $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
  -version-info 0:0:0


libgnunet_plugin_reclaim_attribute_zklaim_la_SOURCES = \
  plugin_reclaim_attribute_zklaim.c
libgnunet_plugin_reclaim_attribute_zklaim_la_LIBADD = \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(LTLIBINTL)
libgnunet_plugin_reclaim_attribute_zklaim_la_LDFLAGS = \
 $(GN_PLUGIN_LDFLAGS)

test_zklaim_SOURCES = zklaim.c
test_zklaim_LDADD = \
  $(GCLIBADD)\
  $(LIBGCRYPT_LIBS) \
	-lzklaim \
  -lgcrypt \
  -lgmp \
  -lgmpxx \
  -lcrypto \
  -lprocps \
  -lstdc++ \
  -lm
test_zklaim_LDFLAGS = \
  $(GN_LIB_LDFLAGS)

gnunet_zklaim_SOURCES = gnunet-zklaim.c
gnunet_zklaim_LDADD = \
	$(top_builddir)/src/util/libgnunetutil.la \
	$(top_builddir)/src/identity/libgnunetidentity.la \
	libgnunetzklaim.la \
  $(GCLIBADD)\
  $(LIBGCRYPT_LIBS) \
	-lzklaim \
  -lgcrypt \
  -lgmp \
  -lgmpxx \
  -lcrypto \
  -lprocps \
  -lstdc++ \
  -lm
gnunet_zklaim_LDFLAGS = \
  $(GN_LIB_LDFLAGS)

bin_PROGRAMS = gnunet-zklaim
#lib_LTLIBRARIES = libgnunetzklaim.la
check_PROGRAMS = test_zklaim

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