aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/Makefile.am
blob: 5efaef97ef7c9ad736a780ba32927c7079c5a2f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
INCLUDES = -I$(top_srcdir)/src/include

if MINGW
  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
endif

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

pkgcfgdir= $(pkgdatadir)/config.d/

pkgcfg_DATA = \
  testbed.conf

bin_PROGRAMS = \
  gnunet-service-testbed \
  gnunet-helper-testbed

gnunet_service_testbed_SOURCES = \
  gnunet-service-testbed.c
gnunet_service_testbed_LDADD = $(XLIB) \
 $(top_builddir)/src/util/libgnunetutil.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/hello/libgnunethello.la \
 $(top_builddir)/src/transport/libgnunettransport.la \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/testbed/libgnunettestbed.la \
 $(LTLIBINTL) -lz
gnunet_service_testbed_DEPENDENCIES = \
  libgnunettestbed.la

gnunet_helper_testbed_SOURCES = \
  gnunet-helper-testbed.c
gnunet_helper_testbed_LDADD = $(XLIB) \
 $(top_builddir)/src/util/libgnunetutil.la \
 $(top_builddir)/src/testing/libgnunettesting.la \
 libgnunettestbed.la \
 $(LTLIBINTL) -lz
gnunet_helper_testbed_DEPENDENCIES = \
  gnunet-service-testbed.$(OBJEXT) \
  libgnunettestbed.la

lib_LTLIBRARIES = \
  libgnunettestbed.la

libgnunettestbed_la_SOURCES = \
  testbed_api.c testbed_api.h testbed.h \
  testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
  testbed_api_operations.c testbed_api_operations.h \
  testbed_api_peers.c testbed_api_peers.h \
  testbed_api_services.c \
  testbed_api_statistics.c \
  testbed_api_testbed.c \
  testbed_api_test.c \
  testbed_api_topology.c
libgnunettestbed_la_LIBADD = $(XLIB) \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/statistics/libgnunetstatistics.la \
 $(top_builddir)/src/transport/libgnunettransport.la \
 $(top_builddir)/src/hello/libgnunethello.la \
 -lm \
 $(top_builddir)/src/util/libgnunetutil.la \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(LTLIBINTL)
libgnunettestbed_la_LDFLAGS = \
 $(GN_LIB_LDFLAGS) \
 -version-info 0:0:0

check_PROGRAMS = \
 test_testbed_api_hosts \
 test_testbed_api_controllerlink \
 test_testbed_api_2peers \
 test_testbed_api \
 test_testbed_api_operations \
 test_testbed_api_testbed_run \
 test_testbed_api_test \
 test_gnunet_helper_testbed

if ENABLE_TEST_RUN
 TESTS = \
  test_testbed_api \
  test_testbed_api_hosts \
  test_testbed_api_2peers \
  test_testbed_api_operations \
  test_gnunet_helper_testbed \
  test_testbed_api_controllerlink \
  test_testbed_api_testbed_run \
  test_testbed_api_test
endif

test_testbed_api_hosts_SOURCES = \
 test_testbed_api_hosts.c
test_testbed_api_hosts_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 libgnunettestbed.la

test_testbed_api_SOURCES = \
 test_testbed_api.c
test_testbed_api_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/dht/libgnunetdht.la \
 libgnunettestbed.la

test_testbed_api_2peers_SOURCES = \
 test_testbed_api_2peers.c
test_testbed_api_2peers_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 $(top_builddir)/src/testing/libgnunettesting.la \
 libgnunettestbed.la

test_testbed_api_operations_SOURCES = \
 test_testbed_api_operations.c
test_testbed_api_operations_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 libgnunettestbed.la

test_testbed_api_controllerlink_SOURCES = \
 test_testbed_api_controllerlink.c
test_testbed_api_controllerlink_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 libgnunettestbed.la

test_testbed_api_testbed_run_SOURCES = \
 test_testbed_api_testbed_run.c
test_testbed_api_testbed_run_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 libgnunettestbed.la

test_testbed_api_test_SOURCES = \
 test_testbed_api_test.c
test_testbed_api_test_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 libgnunettestbed.la

test_gnunet_helper_testbed_SOURCES = \
 test_gnunet_helper_testbed.c
test_gnunet_helper_testbed_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 libgnunettestbed.la \
 -lz