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