-use underscores for testcase names
[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  test_stream_big
27
28 EXTRA_DIST = test_stream_local.conf
29
30 if ENABLE_TEST_RUN
31 TESTS = \
32  test_stream_2peers \
33  test_stream_2peers_halfclose \
34  test_stream_local
35 endif
36
37 test_stream_2peers_SOURCES = \
38  test_stream_2peers.c
39 test_stream_2peers_LDADD = \
40  $(top_builddir)/src/stream/libgnunetstream.la \
41  $(top_builddir)/src/util/libgnunetutil.la \
42  $(top_builddir)/src/testing_old/libgnunettesting_old.la
43
44 test_stream_2peers_halfclose_SOURCES = \
45  test_stream_2peers_halfclose.c
46 test_stream_2peers_halfclose_LDADD = \
47  $(top_builddir)/src/stream/libgnunetstream.la \
48  $(top_builddir)/src/util/libgnunetutil.la \
49  $(top_builddir)/src/testing_old/libgnunettesting_old.la
50
51 test_stream_local_SOURCES = \
52  test_stream_local.c
53 test_stream_local_LDADD = \
54  $(top_builddir)/src/stream/libgnunetstream.la \
55  $(top_builddir)/src/util/libgnunetutil.la \
56  $(top_builddir)/src/testing_old/libgnunettesting_old.la
57
58 test_stream_big_SOURCES = \
59  test_stream_big.c
60 test_stream_big_LDADD = \
61  $(top_builddir)/src/stream/libgnunetstream.la \
62  $(top_builddir)/src/util/libgnunetutil.la \
63  $(top_builddir)/src/testing_old/libgnunettesting_old.la