fix #3275 with solution from https://gnunet.org/bugs/view.php?id=3275#c8029
[oweals/gnunet.git] / src / revocation / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 libexecdir= $(pkglibdir)/libexec/
15
16 pkgcfg_DATA = \
17   revocation.conf
18
19 bin_PROGRAMS = \
20  gnunet-revocation
21
22
23 gnunet_revocation_SOURCES = \
24  gnunet-revocation.c
25 gnunet_revocation_LDADD = \
26   libgnunetrevocation.la \
27   $(top_builddir)/src/identity/libgnunetidentity.la \
28   $(top_builddir)/src/util/libgnunetutil.la \
29   $(GN_LIBINTL)
30
31 lib_LTLIBRARIES = libgnunetrevocation.la
32
33 libgnunetrevocation_la_SOURCES = \
34   revocation_api.c revocation.h
35 libgnunetrevocation_la_LIBADD = \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   $(LIBGCRYPT_LIBS) \
38   $(GN_LIBINTL) $(XLIB) -lgcrypt
39 libgnunetrevocation_la_LDFLAGS = \
40   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
41   -version-info 0:0:0
42
43 libexec_PROGRAMS = \
44  gnunet-service-revocation
45
46
47 gnunet_service_revocation_SOURCES = \
48  gnunet-service-revocation.c
49 gnunet_service_revocation_LDADD = \
50   $(top_builddir)/src/revocation/libgnunetrevocation.la \
51   $(top_builddir)/src/core/libgnunetcore.la \
52   $(top_builddir)/src/set/libgnunetset.la \
53   $(top_builddir)/src/statistics/libgnunetstatistics.la \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   -lm \
56   $(GN_LIBINTL)
57 gnunet_service_revocation_DEPENDENCIES = \
58   libgnunetrevocation.la
59
60 test_revocation_SOURCES = \
61  test_revocation.c
62 test_revocation_LDADD = \
63  $(top_builddir)/src/identity/libgnunetidentity.la \
64  $(top_builddir)/src/revocation/libgnunetrevocation.la \
65  $(top_builddir)/src//core/libgnunetcore.la \
66  $(top_builddir)/src/util/libgnunetutil.la \
67  $(top_builddir)/src/testbed/libgnunettestbed.la
68
69 check_PROGRAMS = \
70  test_revocation
71
72
73 check_SCRIPTS = \
74         test_local_revocation.py
75
76 if ENABLE_TEST_RUN
77  TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
78  TESTS = \
79  $(check_SCRIPTS) \
80  $(check_PROGRAMS)
81 endif
82
83 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
84
85 test_local_revocation.py: test_local_revocation.py.in Makefile
86         $(do_subst) < $(srcdir)/test_local_revocation.py.in > test_local_revocation.py
87         chmod +x test_local_revocation.py
88
89 EXTRA_DIST = test_revocation.conf \
90         test_local_revocation.py.in
91