helper integration to GNUNET_TESTBED_host_run_()
[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   gnunet-testbed-helper
20
21 gnunet_service_testbed_SOURCES = \
22   gnunet-service-testbed.c
23 gnunet_service_testbed_LDADD = $(XLIB) \
24  $(top_builddir)/src/util/libgnunetutil.la \
25  $(top_builddir)/src/testing/libgnunettesting.la \
26  $(top_builddir)/src/testbed/libgnunettestbed.la \
27  $(LTLIBINTL) -lz
28 gnunet_service_testbed_DEPENDENCIES = \
29   libgnunettestbed.la
30
31 gnunet_testbed_helper_SOURCES = \
32   gnunet-testbed-helper.c
33 gnunet_testbed_helper_LDADD = $(XLIB) \
34  $(top_builddir)/src/util/libgnunetutil.la \
35  $(top_builddir)/src/testing/libgnunettesting.la \
36  $(LTLIBINTL) -lz
37 gnunet_testbed_helper_DEPENDENCIES = \
38   gnunet-service-testbed.$(OBJEXT)
39
40 lib_LTLIBRARIES = \
41   libgnunettestbed.la
42
43 libgnunettestbed_la_SOURCES = \
44   testbed_api.c testbed_api.h testbed.h \
45   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
46   testbed_api_operations.c testbed_api_operations.h \
47   testbed_api_peers.c testbed_api_peers.h \
48   testbed_api_services.c \
49   testbed_api_testbed.c \
50   testbed_api_test.c \
51   testbed_api_topology.c
52 libgnunettestbed_la_LIBADD = $(XLIB) \
53  $(top_builddir)/src/core/libgnunetcore.la \
54  $(top_builddir)/src/statistics/libgnunetstatistics.la \
55  $(top_builddir)/src/transport/libgnunettransport.la \
56  $(top_builddir)/src/hello/libgnunethello.la \
57  -lm \
58  $(top_builddir)/src/util/libgnunetutil.la \
59  $(top_builddir)/src/testing/libgnunettesting.la \
60  $(LTLIBINTL)
61 libgnunettestbed_la_LDFLAGS = \
62  $(GN_LIB_LDFLAGS) \
63  -version-info 0:0:0
64
65 check_PROGRAMS = \
66  test_testbed_api_hosts \
67  test_testbed_api \
68  test_gnunet_testbed_helper
69
70 if ENABLE_TEST_RUN
71  TESTS = \
72   test_testbed_api_hosts \
73   test_gnunet_testbed_helper
74 endif
75
76 test_testbed_api_hosts_SOURCES = \
77  test_testbed_api_hosts.c
78 test_testbed_api_hosts_LDADD = \
79  $(top_builddir)/src/util/libgnunetutil.la \
80  libgnunettestbed.la
81
82 test_testbed_api_SOURCES = \
83  test_testbed_api.c
84 test_testbed_api_LDADD = \
85  $(top_builddir)/src/util/libgnunetutil.la \
86  $(top_builddir)/src/testing/libgnunettesting.la \
87  libgnunettestbed.la
88
89 test_gnunet_testbed_helper_SOURCES = \
90  test_gnunet_testbed_helper.c
91 test_gnunet_testbed_helper_LDADD = \
92  $(top_builddir)/src/util/libgnunetutil.la \
93  libgnunettestbed.la