testbed operations
[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/transport/libgnunettransport.la \
26  $(top_builddir)/src/testing/libgnunettesting.la \
27  $(top_builddir)/src/testbed/libgnunettestbed.la \
28  $(LTLIBINTL) -lz
29 gnunet_service_testbed_DEPENDENCIES = \
30   libgnunettestbed.la
31
32 gnunet_testbed_helper_SOURCES = \
33   gnunet-testbed-helper.c
34 gnunet_testbed_helper_LDADD = $(XLIB) \
35  $(top_builddir)/src/util/libgnunetutil.la \
36  $(top_builddir)/src/testing/libgnunettesting.la \
37  libgnunettestbed.la \
38  $(LTLIBINTL) -lz
39 gnunet_testbed_helper_DEPENDENCIES = \
40   gnunet-service-testbed.$(OBJEXT) \
41   libgnunettestbed.la
42
43 lib_LTLIBRARIES = \
44   libgnunettestbed.la
45
46 libgnunettestbed_la_SOURCES = \
47   testbed_api.c testbed_api.h testbed.h \
48   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
49   testbed_api_operations.c testbed_api_operations.h \
50   testbed_api_peers.c testbed_api_peers.h \
51   testbed_api_services.c \
52   testbed_api_testbed.c \
53   testbed_api_test.c \
54   testbed_api_topology.c
55 libgnunettestbed_la_LIBADD = $(XLIB) \
56  $(top_builddir)/src/core/libgnunetcore.la \
57  $(top_builddir)/src/statistics/libgnunetstatistics.la \
58  $(top_builddir)/src/transport/libgnunettransport.la \
59  $(top_builddir)/src/hello/libgnunethello.la \
60  -lm \
61  $(top_builddir)/src/util/libgnunetutil.la \
62  $(top_builddir)/src/testing/libgnunettesting.la \
63  $(LTLIBINTL)
64 libgnunettestbed_la_LDFLAGS = \
65  $(GN_LIB_LDFLAGS) \
66  -version-info 0:0:0
67
68 check_PROGRAMS = \
69  test_testbed_api_hosts \
70  test_testbed_api_2peers \
71  test_testbed_api \
72  test_testbed_api_operations \
73  test_gnunet_testbed_helper
74
75 if ENABLE_TEST_RUN
76  TESTS = \
77   test_testbed_api \
78   test_testbed_api_hosts \
79   test_testbed_api_operations \
80   test_gnunet_testbed_helper
81 endif
82
83 test_testbed_api_hosts_SOURCES = \
84  test_testbed_api_hosts.c
85 test_testbed_api_hosts_LDADD = \
86  $(top_builddir)/src/util/libgnunetutil.la \
87  libgnunettestbed.la
88
89 test_testbed_api_SOURCES = \
90  test_testbed_api.c
91 test_testbed_api_LDADD = \
92  $(top_builddir)/src/util/libgnunetutil.la \
93  $(top_builddir)/src/testing/libgnunettesting.la \
94  libgnunettestbed.la
95
96 test_testbed_api_2peers_SOURCES = \
97  test_testbed_api_2peers.c
98 test_testbed_api_2peers_LDADD = \
99  $(top_builddir)/src/util/libgnunetutil.la \
100  $(top_builddir)/src/testing/libgnunettesting.la \
101  libgnunettestbed.la
102
103 test_testbed_api_operations_SOURCES = \
104  test_testbed_api_operations.c
105 test_testbed_api_operations_LDADD = \
106  $(top_builddir)/src/util/libgnunetutil.la \
107  libgnunettestbed.la
108
109 test_gnunet_testbed_helper_SOURCES = \
110  test_gnunet_testbed_helper.c
111 test_gnunet_testbed_helper_LDADD = \
112  $(top_builddir)/src/util/libgnunetutil.la \
113  libgnunettestbed.la \
114  -lz