Fix TESTS_ENVIRONMENT setting (allow GNUNET_PREFIX to be overriden, allow TESTS_ENVIR...
[oweals/gnunet.git] / src / experimentation / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 pkgcfg_DATA = \
8   experimentation.conf
9
10 if MINGW
11  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = --coverage -O0
16   XLIB = -lgcov
17 endif
18
19
20 if HAVE_EXPERIMENTAL
21  TEXT_EXP_CLIQUE = test_experimentation_clique_connect test_experimentation_clique_run
22 endif
23
24 check_PROGRAMS = \
25  $(TEXT_EXP_CLIQUE)
26
27 if ENABLE_TEST_RUN
28  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
29  TESTS = \
30  $(TEXT_EXP_CLIQUE)
31 endif
32
33 libexec_PROGRAMS = \
34  gnunet-daemon-experimentation
35
36 gnunet_daemon_experimentation_SOURCES = \
37  gnunet-daemon-experimentation.c gnunet-daemon-experimentation.h \
38  gnunet-daemon-experimentation_capabilities.c \
39  gnunet-daemon-experimentation_nodes.c \
40  gnunet-daemon-experimentation_scheduler.c \
41  gnunet-daemon-experimentation_experiments.c \
42  gnunet-daemon-experimentation_storage.c
43 gnunet_daemon_experimentation_LDADD = \
44   $(top_builddir)/src/core/libgnunetcore.la \
45   $(top_builddir)/src/statistics/libgnunetstatistics.la \
46   $(top_builddir)/src/util/libgnunetutil.la
47
48 test_experimentation_clique_connect_SOURCES = \
49  test_experimentation_clique_connect.c
50 test_experimentation_clique_connect_LDADD = \
51  $(top_builddir)/src/util/libgnunetutil.la \
52  $(top_builddir)/src/statistics/libgnunetstatistics.la \
53  $(top_builddir)/src/testbed/libgnunettestbed.la
54
55 test_experimentation_clique_run_SOURCES = \
56  test_experimentation_clique_run.c
57 test_experimentation_clique_run_LDADD = \
58  $(top_builddir)/src/util/libgnunetutil.la \
59  $(top_builddir)/src/statistics/libgnunetstatistics.la \
60  $(top_builddir)/src/testbed/libgnunettestbed.la
61
62 #test_experimentation_clique_run_SOURCES = \
63 # test_experimentation_clique_run.c
64 #test_experimentation_clique_run_LDADD = \
65 # $(top_builddir)/src/util/libgnunetutil.la \
66 # $(top_builddir)/src/statistics/libgnunetstatistics.la \
67 # $(top_builddir)/src/testbed/libgnunettestbed.la
68
69
70 EXTRA_DIST = \
71  test_experimentation_clique.conf \
72  test_experiments.exp