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