- change
[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 check_PROGRAMS = \
24  test_stream_2peers \
25  test_stream_2peers_new \
26  test_stream_2peers_halfclose \
27  test_stream_local \
28  test_stream_big \
29  test_stream_sequence_wraparound
30
31 EXTRA_DIST = test_stream_local.conf
32
33 if ENABLE_TEST_RUN
34 TESTS = \
35  test_stream_2peers \
36  test_stream_2peers_halfclose \
37  test_stream_local \
38  test_stream_big \
39  test_stream_sequence_wraparound \
40  test_stream_2peers_new
41 endif
42
43 test_stream_2peers_SOURCES = \
44  test_stream_2peers.c
45 test_stream_2peers_LDADD = \
46  $(top_builddir)/src/stream/libgnunetstream.la \
47  $(top_builddir)/src/util/libgnunetutil.la \
48  $(top_builddir)/src/testing_old/libgnunettesting_old.la
49
50 test_stream_2peers_new_SOURCES = \
51  test_stream_2peers_new.c
52 test_stream_2peers_new_LDADD = \
53  $(top_builddir)/src/stream/libgnunetstream.la \
54  $(top_builddir)/src/util/libgnunetutil.la \
55  $(top_builddir)/src/testbed/libgnunettestbed.la
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/testing_old/libgnunettesting_old.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