blob: 2e858488b85145cedd0e044529c841e84350b988 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
INCLUDES = -I$(top_srcdir)/src/include
pkgcfgdir= $(pkgdatadir)/config.d/
pkgcfg_DATA = \
ats.conf
if MINGW
WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
endif
if USE_COVERAGE
AM_CFLAGS = -fprofile-arcs -ftest-coverage
endif
if HAVE_LIBGLPK
GN_LIBGLPK = -lglpk
GN_MLP_SRC = gnunet-service-ats_addresses_mlp.c gnunet-service-ats_addresses_mlp.h
GN_MLP_TEST = test_ats_mlp
GN_MLP_TEST_AVG = test_ats_mlp_averaging
GN_MLP_PERF = perf_ats_mlp
endif
lib_LTLIBRARIES = libgnunetats.la
libgnunetats_la_SOURCES = \
ats_api_scheduling.c \
ats_api_performance.c
libgnunetats_la_LIBADD = \
$(top_builddir)/src/util/libgnunetutil.la
libgnunetats_la_LDFLAGS = \
$(GN_LIB_LDFLAGS) \
-version-info 2:0:2
bin_PROGRAMS = \
gnunet-service-ats
gnunet_service_ats_SOURCES = \
gnunet-service-ats.c gnunet-service-ats.h\
gnunet-service-ats_addresses.c gnunet-service-ats_addresses.h \
$(GN_MLP_SRC) \
gnunet-service-ats_performance.c gnunet-service-ats_performance.h \
gnunet-service-ats_scheduling.c gnunet-service-ats_scheduling.h \
gnunet-service-ats_reservations.c gnunet-service-ats_reservations.h
gnunet_service_ats_LDADD = \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_LIBGLPK) \
$(GN_LIBINTL)
check_PROGRAMS = \
test_ats_api_scheduling \
test_ats_api_reset_backoff \
$(GN_MLP_TEST) \
$(GN_MLP_TEST_AVG) \
$(GN_MLP_PERF)
# test_ats_api_scheduling_get_type
# test_ats_api_bandwidth_consumption
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
if HAVE_LIBGLPK
test_ats_mlp_SOURCES = \
$(GN_MLP_SRC) \
test_ats_mlp.c
test_ats_mlp_LDADD = \
$(GN_LIBGLPK) \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la
test_ats_mlp_averaging_SOURCES = \
$(GN_MLP_SRC) \
test_ats_mlp_averaging.c
test_ats_mlp_averaging_LDADD = \
$(GN_LIBGLPK) \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la
perf_ats_mlp_SOURCES = \
$(GN_MLP_SRC) \
perf_ats_mlp.c
perf_ats_mlp_LDADD = \
$(GN_LIBGLPK) \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la
endif
test_ats_api_scheduling_SOURCES = \
test_ats_api_scheduling.c
test_ats_api_scheduling_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/ats/libgnunetats.la
test_ats_api_reset_backoff_SOURCES = \
test_ats_api_reset_backoff.c
test_ats_api_reset_backoff_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/ats/libgnunetats.la
#test_ats_api_scheduling_get_type_SOURCES = \
# test_ats_api_scheduling_get_type.c
#test_ats_api_scheduling_get_type_LDADD = \
# $(top_builddir)/src/util/libgnunetutil.la \
# $(top_builddir)/src/ats/libgnunetats.la
#test_ats_api_bandwidth_consumption_SOURCES = \
# test_ats_api_bandwidth_consumption.c
#test_ats_api_bandwidth_consumption_LDADD = \
# $(top_builddir)/src/util/libgnunetutil.la \
# $(top_builddir)/src/ats/libgnunetats.la
#test_ats_api_update_address_SOURCES = \
# test_ats_api_update_address.c
#test_ats_api_update_address_LDADD = \
# $(top_builddir)/src/util/libgnunetutil.la \
# $(top_builddir)/src/ats/libgnunetats.la
EXTRA_DIST = \
ats.h \
test_ats_api.conf
|