blob: b62885d0c5e3602987b492615220022eea79ed7c (
plain) (
blame)
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
129
130
131
132
133
134
135
136
137
138
139
140
|
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include
pkgcfgdir= $(pkgdatadir)/config.d/
libexecdir= $(pkglibdir)/libexec/
plugindir = $(libdir)/gnunet
dist_pkgcfg_DATA = \
sensor.conf
if MINGW
WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
endif
if USE_COVERAGE
AM_CFLAGS = -fprofile-arcs -ftest-coverage
endif
bin_PROGRAMS = \
gnunet-sensor
noinst_PROGRAMS = \
gnunet-sensor-profiler \
perf-pow-sign
libexec_PROGRAMS = \
gnunet-service-sensor
lib_LTLIBRARIES = \
libgnunetsensor.la \
libgnunetsensorutil.la
gnunet_sensor_SOURCES = \
gnunet-sensor.c
gnunet_sensor_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
libgnunetsensor.la \
$(GN_LIBINTL)
gnunet_service_sensor_SOURCES = \
gnunet-service-sensor.c \
gnunet-service-sensor_monitoring.c \
gnunet-service-sensor_analysis.c \
gnunet-service-sensor_reporting.c \
gnunet-service-sensor_update.c
gnunet_service_sensor_LDADD = \
libgnunetsensorutil.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
$(top_builddir)/src/peerstore/libgnunetpeerstore.la \
$(top_builddir)/src/cadet/libgnunetcadet.la \
$(top_builddir)/src/core/libgnunetcore.la \
$(GN_LIBINTL)
libgnunetsensor_la_SOURCES = \
sensor_api.c
libgnunetsensor_la_LIBADD = \
$(top_builddir)/src/util/libgnunetutil.la
libgnunetsensor_la_LDFLAGS = \
$(GN_LIB_LDFLAGS)
libgnunetsensorutil_la_SOURCES = \
sensor_util_lib.c \
sensor_util_lib_crypto.c
libgnunetsensorutil_la_LIBADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la
libgnunetsensorutil_la_LDFLAGS = \
$(GN_LIB_LDFLAGS)
plugin_LTLIBRARIES = \
libgnunet_plugin_sensor_model_gaussian.la
libgnunet_plugin_sensor_model_gaussian_la_SOURCES = \
plugin_sensor_model_gaussian.c
libgnunet_plugin_sensor_model_gaussian_la_LIBADD = \
libgnunetsensor.la \
$(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
$(LTLIBINTL)
libgnunet_plugin_sensor_model_gaussian_la_LDFLAGS = \
$(GN_PLUGIN_LDFLAGS)
check_PROGRAMS = \
test_sensor_api \
test_gnunet-service-sensor_reporting \
test_pow_sign
if ENABLE_TEST_RUN
AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
TESTS = $(check_PROGRAMS)
endif
test_sensor_api_SOURCES = \
test_sensor_api.c
test_sensor_api_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la
test_gnunet_service_sensor_reporting_SOURCES = \
test_gnunet-service-sensor_reporting.c
test_gnunet_service_sensor_reporting_LDADD = \
libgnunetsensor.la \
libgnunetsensorutil.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/testbed/libgnunettestbed.la \
$(top_builddir)/src/peerstore/libgnunetpeerstore.la
test_pow_sign_SOURCES = \
test_pow_sign.c
test_pow_sign_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/testbed/libgnunettestbed.la \
libgnunetsensorutil.la
gnunet_sensor_profiler_SOURCES = \
gnunet-sensor-profiler.c
gnunet_sensor_profiler_LDADD = \
libgnunetsensor.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/testbed/libgnunettestbed.la \
$(top_builddir)/src/peerstore/libgnunetpeerstore.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la
perf_pow_sign_SOURCES = \
perf_pow_sign.c
perf_pow_sign_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/testbed/libgnunettestbed.la \
libgnunetsensorutil.la
EXTRA_DIST = sensors
pkgsensordir = sensors
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE)/$(pkgsensordir)
@$(NORMAL_INSTALL)
for sensor in $(pkgsensordir)/*; do \
cp -a $$sensor $(DESTDIR)$(datadir)/$(PACKAGE)/$(pkgsensordir)/ ; \
done
|