3285143aabd81dc8fc5e5c47fc462bc4ff4a7302
[oweals/gnunet.git] / src / ats-tests / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 if MINGW
8  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
9 endif
10
11 if USE_COVERAGE
12   AM_CFLAGS = -fprofile-arcs -ftest-coverage
13 endif
14
15 if HAVE_LIBGLPK
16  PERF_MLP_BANDWIDTH = perf_ats_mlp_bandwidth
17  PERF_MLP_DELAY = perf_ats_mlp_delay
18 endif
19
20 if HAVE_TESTING
21 TESTING_TESTS = \
22  perf_ats_proportional_bandwidth \
23  perf_ats_proportional_delay \
24  perf_ats_ril_bandwidth \
25  perf_ats_ril_delay \
26  $(PERF_MLP_BANDWIDTH) $(PERF_MLP_DELAY)
27 endif
28
29 check_PROGRAMS = \
30  $(TESTING_TESTS)
31  
32 if ENABLE_TEST_RUN
33 TESTS = $(check_PROGRAMS)
34 endif
35
36 perf_ats_proportional_bandwidth_SOURCES = \
37   perf_ats.c  
38 perf_ats_proportional_bandwidth_LDADD = \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(top_builddir)/src/testbed/libgnunettestbed.la \
41   $(top_builddir)/src/ats/libgnunetats.la \
42   $(top_builddir)/src/core/libgnunetcore.la  
43
44 perf_ats_proportional_delay_SOURCES = \
45   perf_ats.c  
46 perf_ats_proportional_delay_LDADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(top_builddir)/src/testbed/libgnunettestbed.la \
49   $(top_builddir)/src/ats/libgnunetats.la \
50   $(top_builddir)/src/core/libgnunetcore.la  
51   
52 if HAVE_LIBGLPK
53 perf_ats_mlp_bandwidth_SOURCES = \
54   perf_ats.c  
55 perf_ats_mlp_bandwidth_LDADD = \
56   $(top_builddir)/src/util/libgnunetutil.la \
57   $(top_builddir)/src/testbed/libgnunettestbed.la \
58   $(top_builddir)/src/ats/libgnunetats.la \
59   $(top_builddir)/src/core/libgnunetcore.la  
60   
61 perf_ats_mlp_delay_SOURCES = \
62   perf_ats.c  
63 perf_ats_mlp_delay_LDADD = \
64   $(top_builddir)/src/util/libgnunetutil.la \
65   $(top_builddir)/src/testbed/libgnunettestbed.la \
66   $(top_builddir)/src/ats/libgnunetats.la \
67   $(top_builddir)/src/core/libgnunetcore.la
68 endif
69
70 perf_ats_ril_bandwidth_SOURCES = \
71   perf_ats.c  
72 perf_ats_ril_bandwidth_LDADD = \
73   $(top_builddir)/src/util/libgnunetutil.la \
74   $(top_builddir)/src/testbed/libgnunettestbed.la \
75   $(top_builddir)/src/ats/libgnunetats.la \
76   $(top_builddir)/src/core/libgnunetcore.la  
77   
78 perf_ats_ril_delay_SOURCES = \
79   perf_ats.c  
80 perf_ats_ril_delay_LDADD = \
81   $(top_builddir)/src/util/libgnunetutil.la \
82   $(top_builddir)/src/testbed/libgnunettestbed.la \
83   $(top_builddir)/src/ats/libgnunetats.la \
84   $(top_builddir)/src/core/libgnunetcore.la
85
86 EXTRA_DIST = \
87   perf_ats_proportional_bandwidth.conf \
88   perf_ats_proportional_delay.conf \
89   perf_ats_mlp_bandwidth.conf \
90   perf_ats_mlp_delay.conf \
91   perf_ats_ril_bandwidth.conf \
92   perf_ats_ril_delay.conf