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