fixing parallel build, getting rid of useless _DEPENDENCIES declarations
[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   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
58 test_revocation_SOURCES = \
59  test_revocation.c
60 test_revocation_LDADD = \
61  $(top_builddir)/src/identity/libgnunetidentity.la \
62  libgnunetrevocation.la \
63  $(top_builddir)/src//core/libgnunetcore.la \
64  $(top_builddir)/src/util/libgnunetutil.la \
65  $(top_builddir)/src/testbed/libgnunettestbed.la
66
67 check_PROGRAMS = \
68  test_revocation
69
70
71 check_SCRIPTS = \
72         test_local_revocation.py
73
74 if ENABLE_TEST_RUN
75  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
76  TESTS = \
77  $(check_SCRIPTS) \
78  $(check_PROGRAMS)
79 endif
80
81 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
82
83 test_local_revocation.py: test_local_revocation.py.in Makefile
84         $(do_subst) < $(srcdir)/test_local_revocation.py.in > test_local_revocation.py
85         chmod +x test_local_revocation.py
86
87 EXTRA_DIST = test_revocation.conf \
88         test_local_revocation.py.in
89