8a5e141ab7591af1ec224e928356df520dbfade5
[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/util/libgnunetutil.la $(XLIB)
20 libgnunetstream_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS) \
22   -version-info 0:0:0
23
24 if HAVE_BENCHMARKS
25  STREAM_BENCHMARKS = \
26  perf_stream_api
27 endif
28
29 check_PROGRAMS = \
30  test_stream_2peers \
31  test_stream_2peers_halfclose \
32  test_stream_local \
33  test_stream_big \
34  test_stream_sequence_wraparound \
35  $(STREAM_BENCHMARKS)
36
37 EXTRA_DIST = test_stream_local.conf
38
39 if ENABLE_TEST_RUN
40 TESTS = \
41  test_stream_2peers \
42  test_stream_2peers_halfclose \
43  test_stream_local \
44  test_stream_big \
45  test_stream_sequence_wraparound \
46  $(STREAM_BENCHMARKS)
47 endif
48
49 test_stream_2peers_SOURCES = \
50  test_stream_2peers.c
51 test_stream_2peers_LDADD = \
52  $(top_builddir)/src/stream/libgnunetstream.la \
53  $(top_builddir)/src/util/libgnunetutil.la \
54  $(top_builddir)/src/testbed/libgnunettestbed.la
55
56
57 test_stream_2peers_halfclose_SOURCES = \
58  test_stream_2peers_halfclose.c
59 test_stream_2peers_halfclose_LDADD = \
60  $(top_builddir)/src/stream/libgnunetstream.la \
61  $(top_builddir)/src/util/libgnunetutil.la \
62  $(top_builddir)/src/testbed/libgnunettestbed.la
63
64 test_stream_local_SOURCES = \
65  test_stream_local.c
66 test_stream_local_LDADD = \
67  $(top_builddir)/src/stream/libgnunetstream.la \
68  $(top_builddir)/src/util/libgnunetutil.la \
69  $(top_builddir)/src/testing/libgnunettesting.la
70
71 test_stream_big_SOURCES = \
72  test_stream_big.c
73 test_stream_big_LDADD = \
74  $(top_builddir)/src/stream/libgnunetstream.la \
75  $(top_builddir)/src/util/libgnunetutil.la \
76  $(top_builddir)/src/testing/libgnunettesting.la
77
78 test_stream_sequence_wraparound_SOURCES = \
79  test_stream_sequence_wraparound.c
80 test_stream_sequence_wraparound_LDADD = \
81  $(top_builddir)/src/stream/libgnunetstream.la \
82  $(top_builddir)/src/util/libgnunetutil.la \
83  $(top_builddir)/src/testing/libgnunettesting.la
84
85 perf_stream_api_SOURCES = \
86  perf_stream_api.c
87 perf_stream_api_LDADD = \
88  $(top_builddir)/src/stream/libgnunetstream.la \
89  $(top_builddir)/src/util/libgnunetutil.la \
90  $(top_builddir)/src/testing/libgnunettesting.la \
91  $(top_builddir)/src/testbed/libgnunettestbed.la