-cleanup, FIXMEs
[oweals/gnunet.git] / src / scalarproduct / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 pkgcfg_DATA = \
8   scalarproduct.conf 
9
10 if MINGW
11  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = -fprofile-arcs -ftest-coverage
16 endif
17
18 bin_PROGRAMS = \
19  gnunet-scalarproduct
20
21 libexec_PROGRAMS = \
22  gnunet-service-scalarproduct
23
24 lib_LTLIBRARIES = \
25   libgnunetscalarproduct.la
26
27 gnunet_scalarproduct_SOURCES = \
28   gnunet-scalarproduct.c
29 gnunet_scalarproduct_LDADD = \
30   $(top_builddir)/src/util/libgnunetutil.la \
31   $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
32   -lgcrypt \
33   $(GN_LIBINTL) 
34 gnunet_scalarproduct_DEPENDENCIES = \
35   libgnunetscalarproduct.la
36
37 gnunet_service_scalarproduct_SOURCES = \
38   gnunet-service-scalarproduct.c
39 gnunet_service_scalarproduct_LDADD = \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(top_builddir)/src/mesh/libgnunetmesh.la \
42   $(top_builddir)/src/set/libgnunetset.la \
43   -lgcrypt \
44   $(GN_LIBINTL)
45
46 libgnunetscalarproduct_la_SOURCES = \
47   scalarproduct_api.c 
48 libgnunetscalarproduct_la_LIBADD = \
49   $(top_builddir)/src/util/libgnunetutil.la \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   -lgcrypt \
52   $(LTLIBINTL)
53 libgnunetscalarproduct_la_LDFLAGS = \
54   $(GN_LIB_LDFLAGS)
55
56 check_PROGRAMS = \
57         test_scalarproduct_api_regression \
58         test_scalarproduct_api \
59         test_scalarproduct_api_4peers
60 #FIXME unfinished
61 #test_scalarproduct_api_regression2 
62
63 if ENABLE_TEST_RUN
64   TESTS = $(check_PROGRAMS)
65 endif
66
67 test_consensus_api_SOURCES = \
68  test_consensus_api.c
69 test_consensus_api_LDADD = \
70   $(top_builddir)/src/util/libgnunetutil.la \
71   $(top_builddir)/src/testing/libgnunettesting.la \
72   $(top_builddir)/src/consensus/libgnunetconsensus.la
73
74 test_scalarproduct_api_SOURCES = \
75   test_scalarproduct_api.c
76 test_scalarproduct_api_LDADD = \
77   $(top_builddir)/src/util/libgnunetutil.la \
78   $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
79   -lgcrypt
80
81 #FIXME unfinished
82 #test_scalarproduct_api_regression2_SOURCES = \
83 #       test_scalarproduct_api_regression2.c
84 #test_scalarproduct_api_regression2_LDADD = \
85 #  $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
86 #  $(top_builddir)/src/util/libgnunetutil.la \
87 #  -lgcrypt
88
89 test_scalarproduct_api_regression_SOURCES = \
90         test_scalarproduct_api_regression.c
91 test_scalarproduct_api_regression_LDADD = \
92   $(top_builddir)/src/util/libgnunetutil.la \
93   $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
94   -lgcrypt
95
96 test_scalarproduct_api_4peers_SOURCES = \
97  test_scalarproduct_api_4peers.c
98 test_scalarproduct_api_4peers_LDADD = \
99   $(top_builddir)/src/util/libgnunetutil.la \
100   $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
101   -lgcrypt
102
103 EXTRA_DIST = \
104   test_scalarproduct.conf
105