-LRN: fix testbed dependency
[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
20 gnunet_service_testbed_SOURCES = \
21   gnunet-service-testbed.c
22 gnunet_service_testbed_LDADD = $(XLIB) \
23   $(top_builddir)/src/util/libgnunetutil.la \
24  $(top_builddir)/src/testbed/libgnunettestbed.la \
25   $(LTLIBINTL)
26 gnunet_service_testbed_DEPENDENCIES = \
27   libgnunettestbed.la
28
29 dist_pkgcfg_DATA = \
30   testbed.conf
31
32 lib_LTLIBRARIES = \
33   libgnunettestbed.la
34
35 libgnunettestbed_la_SOURCES = \
36   testbed_api.c testbed.h \
37   testbed_api_hosts.c testbed_api_hosts.h \
38   testbed_api_operations.c testbed_api_operations.h \
39   testbed_api_peers.c testbed_api_peers.h \
40   testbed_api_services.c \
41   testbed_api_testbed.c \
42   testbed_api_test.c \
43   testbed_api_topology.c
44 libgnunettestbed_la_LIBADD = $(XLIB) \
45  $(top_builddir)/src/core/libgnunetcore.la \
46  $(top_builddir)/src/statistics/libgnunetstatistics.la \
47  $(top_builddir)/src/transport/libgnunettransport.la \
48  $(top_builddir)/src/hello/libgnunethello.la \
49  -lm \
50  $(top_builddir)/src/util/libgnunetutil.la \
51  $(LTLIBINTL)
52 libgnunettestbed_la_LDFLAGS = \
53  $(GN_LIB_LDFLAGS) \
54  -version-info 0:0:0
55