2fe70913ee479ee05ade0c04273d15983062cca5
[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/util/libgnunetutil.la $(XLIB)
19 libgnunetstream_la_LDFLAGS = \
20   $(GN_LIB_LDFLAGS)
21
22 check_PROGRAMS = \
23  test_stream_2peers \
24  test_stream_2peers_halfclose \
25  test_stream_local
26
27 EXTRA_DIST = test_stream_local.conf
28
29 if ENABLE_TEST_RUN
30 TESTS = test_stream_2peers \
31  test_stream_2peers_halfclose
32 endif
33
34 test_stream_2peers_SOURCES = \
35  test_stream_2peers.c
36 test_stream_2peers_LDADD = \
37  $(top_builddir)/src/stream/libgnunetstream.la \
38  $(top_builddir)/src/util/libgnunetutil.la \
39  $(top_builddir)/src/testing/libgnunettesting.la
40
41 test_stream_2peers_halfclose_SOURCES = \
42  test_stream_2peers_halfclose.c
43 test_stream_2peers_halfclose_LDADD = \
44  $(top_builddir)/src/stream/libgnunetstream.la \
45  $(top_builddir)/src/util/libgnunetutil.la \
46  $(top_builddir)/src/testing/libgnunettesting.la
47
48 test_stream_local_SOURCES = \
49  test_stream_local.c
50 test_stream_local_LDADD = \
51  $(top_builddir)/src/stream/libgnunetstream.la \
52  $(top_builddir)/src/util/libgnunetutil.la \
53  $(top_builddir)/src/testing/libgnunettesting.la