use enum GNUNET_ATS_Network_Type instead of uint32_t where appropriate
[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   $(GN_LIBINTL) $(XLIB) -lgcrypt
38 libgnunetrevocation_la_LDFLAGS = \
39   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
40   -version-info 0:0:0
41
42 libexec_PROGRAMS = \
43  gnunet-service-revocation
44
45
46 gnunet_service_revocation_SOURCES = \
47  gnunet-service-revocation.c
48 gnunet_service_revocation_LDADD = \
49   $(top_builddir)/src/revocation/libgnunetrevocation.la \
50   $(top_builddir)/src/core/libgnunetcore.la \
51   $(top_builddir)/src/set/libgnunetset.la \
52   $(top_builddir)/src/statistics/libgnunetstatistics.la \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   -lm \
55   $(GN_LIBINTL)
56 gnunet_service_revocation_DEPENDENCIES = \
57   libgnunetrevocation.la
58
59 test_revocation_SOURCES = \
60  test_revocation.c
61 test_revocation_LDADD = \
62  $(top_builddir)/src/identity/libgnunetidentity.la \
63  $(top_builddir)/src/revocation/libgnunetrevocation.la \
64  $(top_builddir)/src//core/libgnunetcore.la \
65  $(top_builddir)/src/util/libgnunetutil.la \
66  $(top_builddir)/src/testbed/libgnunettestbed.la
67
68 check_PROGRAMS = \
69  test_revocation 
70
71
72 check_SCRIPTS = \
73         test_local_revocation.py
74
75 if ENABLE_TEST_RUN
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