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