-fix double-sending in stream if finish_cb behaves in a certain way
[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_protocol.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 0: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  $(STREAM_BENCHMARKS)
37
38 EXTRA_DIST = test_stream_local.conf
39
40 if ENABLE_TEST_RUN
41 TESTS = \
42  test_stream_2peers \
43  test_stream_2peers_halfclose \
44  test_stream_local \
45  test_stream_big \
46  test_stream_sequence_wraparound \
47  $(STREAM_BENCHMARKS)
48 endif
49
50 test_stream_2peers_SOURCES = \
51  test_stream_2peers.c
52 test_stream_2peers_LDADD = \
53  $(top_builddir)/src/stream/libgnunetstream.la \
54  $(top_builddir)/src/util/libgnunetutil.la \
55  $(top_builddir)/src/testbed/libgnunettestbed.la
56
57
58 test_stream_2peers_halfclose_SOURCES = \
59  test_stream_2peers_halfclose.c
60 test_stream_2peers_halfclose_LDADD = \
61  $(top_builddir)/src/stream/libgnunetstream.la \
62  $(top_builddir)/src/util/libgnunetutil.la \
63  $(top_builddir)/src/testbed/libgnunettestbed.la
64
65 test_stream_local_SOURCES = \
66  test_stream_local.c
67 test_stream_local_LDADD = \
68  $(top_builddir)/src/stream/libgnunetstream.la \
69  $(top_builddir)/src/util/libgnunetutil.la \
70  $(top_builddir)/src/testing/libgnunettesting.la
71
72 test_stream_big_SOURCES = \
73  test_stream_big.c
74 test_stream_big_LDADD = \
75  $(top_builddir)/src/stream/libgnunetstream.la \
76  $(top_builddir)/src/util/libgnunetutil.la \
77  $(top_builddir)/src/testing/libgnunettesting.la
78
79 test_stream_sequence_wraparound_SOURCES = \
80  test_stream_sequence_wraparound.c
81 test_stream_sequence_wraparound_LDADD = \
82  $(top_builddir)/src/stream/libgnunetstream.la \
83  $(top_builddir)/src/util/libgnunetutil.la \
84  $(top_builddir)/src/testing/libgnunettesting.la
85
86 perf_stream_api_SOURCES = \
87  perf_stream_api.c
88 perf_stream_api_LDADD = \
89  $(top_builddir)/src/stream/libgnunetstream.la \
90  $(top_builddir)/src/util/libgnunetutil.la \
91  $(top_builddir)/src/testing/libgnunettesting.la \
92  $(top_builddir)/src/testbed/libgnunettestbed.la