-breaking testbed again...
[oweals/gnunet.git] / src / testbed / 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 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 pkgcfg_DATA = \
15   testbed.conf
16
17 bin_PROGRAMS = \
18   gnunet-service-testbed
19
20 gnunet_service_testbed_SOURCES = \
21   gnunet-service-testbed.c
22 gnunet_service_testbed_LDADD = $(XLIB) \
23  $(top_builddir)/src/util/libgnunetutil.la \
24  $(top_builddir)/src/testing/libgnunettesting.la \
25  $(top_builddir)/src/testbed/libgnunettestbed.la \
26  $(LTLIBINTL) -lz
27 gnunet_service_testbed_DEPENDENCIES = \
28   libgnunettestbed.la
29
30 lib_LTLIBRARIES = \
31   libgnunettestbed.la
32
33 libgnunettestbed_la_SOURCES = \
34   testbed_api.c testbed.h \
35   testbed_api_hosts.c testbed_api_hosts.h \
36   testbed_api_operations.c testbed_api_operations.h \
37   testbed_api_peers.c testbed_api_peers.h \
38   testbed_api_services.c \
39   testbed_api_testbed.c \
40   testbed_api_test.c \
41   testbed_api_topology.c
42 libgnunettestbed_la_LIBADD = $(XLIB) \
43  $(top_builddir)/src/core/libgnunetcore.la \
44  $(top_builddir)/src/statistics/libgnunetstatistics.la \
45  $(top_builddir)/src/transport/libgnunettransport.la \
46  $(top_builddir)/src/hello/libgnunethello.la \
47  -lm \
48  $(top_builddir)/src/util/libgnunetutil.la \
49  $(LTLIBINTL)
50 libgnunettestbed_la_LDFLAGS = \
51  $(GN_LIB_LDFLAGS) \
52  -version-info 0:0:0
53
54 check_PROGRAMS = \
55  test_testbed_api_hosts \
56  test_testbed_api
57
58 if ENABLE_TEST_RUN
59  TESTS = \
60    test_testbed_api_hosts \
61    test_testbed_api
62 endif
63
64 test_testbed_api_hosts_SOURCES = \
65  test_testbed_api_hosts.c
66 test_testbed_api_hosts_LDADD = \
67  $(top_builddir)/src/util/libgnunetutil.la \
68  libgnunettestbed.la
69
70 test_testbed_api_SOURCES = \
71  test_testbed_api.c
72 test_testbed_api_LDADD = \
73  $(top_builddir)/src/util/libgnunetutil.la \
74  $(top_builddir)/src/testing/libgnunettesting.la \
75  libgnunettestbed.la