diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vectorproduct/Makefile.am | 123 |
1 files changed, 69 insertions, 54 deletions
diff --git a/src/vectorproduct/Makefile.am b/src/vectorproduct/Makefile.am index e9cbbc644..1f0912e50 100644 --- a/src/vectorproduct/Makefile.am +++ b/src/vectorproduct/Makefile.am | |||
@@ -1,37 +1,64 @@ | |||
1 | SUBDIRS = . | 1 | INCLUDES = -I$(top_srcdir)/src/include |
2 | 2 | ||
3 | INCLUDES = \ | 3 | pkgcfgdir= $(pkgdatadir)/config.d/ |
4 | -I$(top_srcdir)/src/include \ | ||
5 | -I$(top_srcdir) | ||
6 | 4 | ||
7 | AM_CPPFLAGS = \ | 5 | libexecdir= $(pkglibdir)/libexec/ |
8 | $(GNUNET_CPPFLAGS) | ||
9 | 6 | ||
10 | # Set this variable if you are using GNUNET libraries for all programs and | 7 | pkgcfg_DATA = \ |
11 | # libraries. You don't then need to target-specific _LDFLAGS with GNUNET_LDFLAGS | 8 | vectorproduct.conf |
12 | # AM_LDFLAGS = \ | ||
13 | # $(GNUNET_LDFLAGS) \ | ||
14 | # $(WINFLAGS) \ | ||
15 | # -export-dynamic | ||
16 | 9 | ||
17 | lib_LTLIBRARIES = libgnunetvectorproduct.la | 10 | if MINGW |
11 | WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols | ||
12 | endif | ||
18 | 13 | ||
19 | pkgcfgdir= $(prefix)/share/gnunet/config.d/ | 14 | if USE_COVERAGE |
15 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | ||
16 | endif | ||
20 | 17 | ||
21 | libexecdir= $(prefix)/lib/gnunet/libexec/ | 18 | bin_PROGRAMS = \ |
19 | gnunet-vectorproduct | ||
20 | |||
21 | libexec_PROGRAMS = \ | ||
22 | gnunet-service-vectorproduct | ||
23 | |||
24 | # FIXME: add option "configure --with-evil"? | ||
25 | #if HAVE_EXPERIMENTAL | ||
26 | #libexec_PROGRAMS += \ | ||
27 | # gnunet-service-evil-consensus | ||
28 | #endif | ||
29 | |||
30 | lib_LTLIBRARIES = \ | ||
31 | libgnunetvectorproduct.la | ||
32 | |||
33 | gnunet_vectorproduct_SOURCES = \ | ||
34 | gnunet-vectorproduct.c | ||
35 | gnunet_vectorproduct_LDADD = \ | ||
36 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
37 | $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ | ||
38 | -lgcrypt \ | ||
39 | $(GN_LIBINTL) | ||
40 | gnunet_vectorproduct_DEPENDENCIES = \ | ||
41 | libgnunetvectorproduct.la | ||
42 | |||
43 | gnunet_service_vectorproduct_SOURCES = \ | ||
44 | gnunet-service-vectorproduct.c | ||
45 | gnunet_service_vectorproduct_LDADD = \ | ||
46 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
47 | $(top_builddir)/src/core/libgnunetcore.la \ | ||
48 | $(top_builddir)/src/mesh/libgnunetmesh.la \ | ||
49 | $(top_builddir)/src/set/libgnunetset.la \ | ||
50 | -lgcrypt \ | ||
51 | $(GN_LIBINTL) | ||
22 | 52 | ||
23 | libgnunetvectorproduct_la_SOURCES = \ | 53 | libgnunetvectorproduct_la_SOURCES = \ |
24 | vectorproduct_api.c | 54 | vectorproduct_api.c |
25 | libgnunetvectorproduct_la_LIBADD = \ | 55 | libgnunetvectorproduct_la_LIBADD = \ |
26 | -lgnunetutil -lgcrypt -lgnunetstatistics | 56 | $(top_builddir)/src/util/libgnunetutil.la \ |
57 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
58 | -lgcrypt \ | ||
59 | $(LTLIBINTL) | ||
27 | libgnunetvectorproduct_la_LDFLAGS = \ | 60 | libgnunetvectorproduct_la_LDFLAGS = \ |
28 | $(GNUNET_LDFLAGS) $(WINFLAGS) \ | 61 | $(GN_LIB_LDFLAGS) |
29 | -version-info 0:0:0 | ||
30 | |||
31 | |||
32 | bin_PROGRAMS = gnunet-vectorproduct | ||
33 | |||
34 | libexec_PROGRAMS = gnunet-service-vectorproduct | ||
35 | 62 | ||
36 | check_PROGRAMS = \ | 63 | check_PROGRAMS = \ |
37 | test_vectorproduct_api_regression \ | 64 | test_vectorproduct_api_regression \ |
@@ -40,58 +67,46 @@ check_PROGRAMS = \ | |||
40 | #FIXME unfinished | 67 | #FIXME unfinished |
41 | #test_vectorproduct_api_regression2 | 68 | #test_vectorproduct_api_regression2 |
42 | 69 | ||
43 | TESTS = $(check_PROGRAMS) | 70 | if ENABLE_TEST_RUN |
44 | 71 | TESTS = $(check_PROGRAMS) | |
45 | gnunet_service_vectorproduct_SOURCES = \ | 72 | endif |
46 | gnunet-service-vectorproduct.c | ||
47 | gnunet_service_vectorproduct_LDADD = \ | ||
48 | -lgnunetutil -lgnunettransport -lgnunetcore -lgnunetmesh -lgnunetdht -lgcrypt \ | ||
49 | $(INTLLIBS) | ||
50 | gnunet_service_vectorproduct_LDFLAGS = \ | ||
51 | $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic | ||
52 | |||
53 | gnunet_vectorproduct_SOURCES = \ | ||
54 | gnunet-vectorproduct.c | ||
55 | gnunet_vectorproduct_LDADD = \ | ||
56 | $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ | ||
57 | -lgnunetutil -lgcrypt \ | ||
58 | $(INTLLIBS) | ||
59 | gnunet_vectorproduct_LDFLAGS = \ | ||
60 | $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic | ||
61 | 73 | ||
74 | test_consensus_api_SOURCES = \ | ||
75 | test_consensus_api.c | ||
76 | test_consensus_api_LDADD = \ | ||
77 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
78 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
79 | $(top_builddir)/src/consensus/libgnunetconsensus.la | ||
62 | 80 | ||
63 | test_vectorproduct_api_SOURCES = \ | 81 | test_vectorproduct_api_SOURCES = \ |
64 | test_vectorproduct_api.c | 82 | test_vectorproduct_api.c |
65 | test_vectorproduct_api_LDADD = \ | 83 | test_vectorproduct_api_LDADD = \ |
84 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
66 | $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ | 85 | $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ |
67 | -lgnunetutil -lgcrypt -lgnunetstatistics -lgnunettestbed | 86 | -lgcrypt |
68 | test_vectorproduct_api_LDFLAGS = \ | ||
69 | $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic | ||
70 | 87 | ||
71 | #FIXME unfinished | 88 | #FIXME unfinished |
72 | #test_vectorproduct_api_regression2_SOURCES = \ | 89 | #test_vectorproduct_api_regression2_SOURCES = \ |
73 | # test_vectorproduct_api_regression2.c | 90 | # test_vectorproduct_api_regression2.c |
74 | #test_vectorproduct_api_regression2_LDADD = \ | 91 | #test_vectorproduct_api_regression2_LDADD = \ |
75 | # $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ | 92 | # $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ |
76 | # -lgnunetutil -lgcrypt -lgnunetstatistics -lgnunettestbed | 93 | # $(top_builddir)/src/util/libgnunetutil.la \ |
77 | #test_vectorproduct_api_regression2_LDFLAGS = \ | 94 | # -lgcrypt |
78 | # $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic | ||
79 | 95 | ||
80 | test_vectorproduct_api_regression_SOURCES = \ | 96 | test_vectorproduct_api_regression_SOURCES = \ |
81 | test_vectorproduct_api_regression.c | 97 | test_vectorproduct_api_regression.c |
82 | test_vectorproduct_api_regression_LDADD = \ | 98 | test_vectorproduct_api_regression_LDADD = \ |
99 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
83 | $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ | 100 | $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ |
84 | -lgnunetutil -lgcrypt -lgnunetstatistics -lgnunettestbed | 101 | -lgcrypt |
85 | test_vectorproduct_api_regression_LDFLAGS = \ | ||
86 | $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic | ||
87 | 102 | ||
88 | test_vectorproduct_api_4peers_SOURCES = \ | 103 | test_vectorproduct_api_4peers_SOURCES = \ |
89 | test_vectorproduct_api_4peers.c | 104 | test_vectorproduct_api_4peers.c |
90 | test_vectorproduct_api_4peers_LDADD = \ | 105 | test_vectorproduct_api_4peers_LDADD = \ |
106 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
91 | $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ | 107 | $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \ |
92 | -lgnunetutil -lgcrypt -lgnunetstatistics -lgnunettestbed | 108 | -lgcrypt |
93 | test_vectorproduct_api_4peers_LDFLAGS = \ | ||
94 | $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic | ||
95 | 109 | ||
96 | pkgcfg_DATA = vectorproduct.conf | 110 | EXTRA_DIST = \ |
111 | test_vectorproduct.conf | ||
97 | 112 | ||