- distribute peers equally among island nodes on SuperMUC
[oweals/gnunet.git] / src / stream / Makefile.am
1 INCLUDES = -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 lib_LTLIBRARIES = libgnunetstream.la
13
14 libgnunetstream_la_SOURCES = \
15   stream_api.c stream.h
16 libgnunetstream_la_LIBADD = \
17  $(top_builddir)/src/mesh/libgnunetmesh.la \
18  $(top_builddir)/src/lockmanager/libgnunetlockmanager.la \
19  $(top_builddir)/src/statistics/libgnunetstatistics.la \
20  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
21 libgnunetstream_la_LDFLAGS = \
22   $(GN_LIB_LDFLAGS) \
23   -version-info 1:0:0
24
25 if HAVE_BENCHMARKS
26  STREAM_BENCHMARKS = \
27  perf_stream_api
28 endif
29
30 check_PROGRAMS = \
31  test_stream_2peers \
32  test_stream_2peers_halfclose \
33  test_stream_local \
34  test_stream_big \
35  test_stream_sequence_wraparound \
36  mesh-test \
37  $(STREAM_BENCHMARKS)
38
39 EXTRA_DIST = test_stream_local.conf
40
41 if ENABLE_TEST_RUN
42 TESTS = \
43  test_stream_2peers \
44  test_stream_2peers_halfclose \
45  test_stream_local \
46  test_stream_big \
47  test_stream_sequence_wraparound \
48  $(STREAM_BENCHMARKS)
49 endif
50
51 test_stream_2peers_SOURCES = \
52  test_stream_2peers.c
53 test_stream_2peers_LDADD = \
54  $(top_builddir)/src/stream/libgnunetstream.la \
55  $(top_builddir)/src/util/libgnunetutil.la \
56  $(top_builddir)/src/testbed/libgnunettestbed.la
57
58
59 test_stream_2peers_halfclose_SOURCES = \
60  test_stream_2peers_halfclose.c
61 test_stream_2peers_halfclose_LDADD = \
62  $(top_builddir)/src/stream/libgnunetstream.la \
63  $(top_builddir)/src/util/libgnunetutil.la \
64  $(top_builddir)/src/testbed/libgnunettestbed.la
65
66 test_stream_local_SOURCES = \
67  test_stream_local.c
68 test_stream_local_LDADD = \
69  $(top_builddir)/src/stream/libgnunetstream.la \
70  $(top_builddir)/src/util/libgnunetutil.la \
71  $(top_builddir)/src/testing/libgnunettesting.la
72
73 test_stream_big_SOURCES = \
74  test_stream_big.c
75 test_stream_big_LDADD = \
76  $(top_builddir)/src/stream/libgnunetstream.la \
77  $(top_builddir)/src/util/libgnunetutil.la \
78  $(top_builddir)/src/testing/libgnunettesting.la
79
80 test_stream_sequence_wraparound_SOURCES = \
81  test_stream_sequence_wraparound.c
82 test_stream_sequence_wraparound_LDADD = \
83  $(top_builddir)/src/stream/libgnunetstream.la \
84  $(top_builddir)/src/util/libgnunetutil.la \
85  $(top_builddir)/src/testing/libgnunettesting.la
86
87 perf_stream_api_SOURCES = \
88  perf_stream_api.c
89 perf_stream_api_LDADD = \
90  $(top_builddir)/src/stream/libgnunetstream.la \
91  $(top_builddir)/src/util/libgnunetutil.la \
92  $(top_builddir)/src/testing/libgnunettesting.la \
93  $(top_builddir)/src/testbed/libgnunettestbed.la
94
95 mesh_test_SOURCES = mesh-test.c
96 mesh_test_LDADD = \
97  $(top_builddir)/src/mesh/libgnunetmesh.la \
98  $(top_builddir)/src/util/libgnunetutil.la