3a0e6835e5b21708f54da6937000b1875e4d3167
[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_halfclose \
26  test_stream_local \
27  test_stream_big \
28  test_stream_sequence_wraparound
29
30 EXTRA_DIST = test_stream_local.conf
31
32 if ENABLE_TEST_RUN
33 TESTS = $(check_PROGRAMS)
34 # test_stream_2peers \
35  test_stream_2peers_halfclose \
36  test_stream_local
37 endif
38
39 test_stream_2peers_SOURCES = \
40  test_stream_2peers.c
41 test_stream_2peers_LDADD = \
42  $(top_builddir)/src/stream/libgnunetstream.la \
43  $(top_builddir)/src/util/libgnunetutil.la \
44  $(top_builddir)/src/testing_old/libgnunettesting_old.la
45
46 test_stream_2peers_halfclose_SOURCES = \
47  test_stream_2peers_halfclose.c
48 test_stream_2peers_halfclose_LDADD = \
49  $(top_builddir)/src/stream/libgnunetstream.la \
50  $(top_builddir)/src/util/libgnunetutil.la \
51  $(top_builddir)/src/testing_old/libgnunettesting_old.la
52
53 test_stream_local_SOURCES = \
54  test_stream_local.c
55 test_stream_local_LDADD = \
56  $(top_builddir)/src/stream/libgnunetstream.la \
57  $(top_builddir)/src/util/libgnunetutil.la \
58  $(top_builddir)/src/testing_old/libgnunettesting_old.la
59
60 test_stream_big_SOURCES = \
61  test_stream_big.c
62 test_stream_big_LDADD = \
63  $(top_builddir)/src/stream/libgnunetstream.la \
64  $(top_builddir)/src/util/libgnunetutil.la \
65  $(top_builddir)/src/testing_old/libgnunettesting_old.la
66
67 test_stream_sequence_wraparound_SOURCES = \
68  test_stream_sequence_wraparound.c
69 test_stream_sequence_wraparound_LDADD = \
70  $(top_builddir)/src/stream/libgnunetstream.la \
71  $(top_builddir)/src/util/libgnunetutil.la \
72  $(top_builddir)/src/testing_old/libgnunettesting_old.la