- new program_run and run_2
[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_local \
24  test_stream_api
25 # test_stream_halfclose
26
27 EXTRA_DIST = test_stream_local.conf
28
29 if ENABLE_TEST_RUN
30 TESTS = $(check_PROGRAMS)
31 endif
32
33 test_stream_local_SOURCES = \
34  test_stream_local.c
35 test_stream_local_LDADD = \
36  $(top_builddir)/src/stream/libgnunetstream.la \
37  $(top_builddir)/src/util/libgnunetutil.la \
38  $(top_builddir)/src/testing/libgnunettesting.la
39
40 test_stream_api_SOURCES = \
41  test_stream_api.c
42 test_stream_api_LDADD = \
43  $(top_builddir)/src/stream/libgnunetstream.la \
44  $(top_builddir)/src/util/libgnunetutil.la \
45  $(top_builddir)/src/testing/libgnunettesting.la
46
47 #test_stream_halfclose_SOURCES = \
48 # test_stream_halfclose.c
49 #test_stream_halfclose_LDADD = \
50 # $(top_builddir)/src/stream/libgnunetstream.la \
51 # $(top_builddir)/src/util/libgnunetutil.la  
52