1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 plugindir = $(libdir)/gnunet
6 pkgcfgdir= $(pkgdatadir)/config.d/
8 libexecdir= $(pkglibdir)/libexec/
14 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
18 AM_CFLAGS = -fprofile-arcs -ftest-coverage
21 lib_LTLIBRARIES = libgnunetats.la
23 plugin_LTLIBRARIES = \
24 libgnunet_plugin_ats_proportional.la \
26 libgnunet_plugin_ats_ril.la
29 plugin_LTLIBRARIES += \
30 libgnunet_plugin_ats_mlp.la
33 libgnunetats_la_SOURCES = \
34 ats_api_connectivity.c \
36 ats_api_scheduling.c \
38 libgnunetats_la_LIBADD = \
39 $(top_builddir)/src/hello/libgnunethello.la \
40 $(top_builddir)/src/util/libgnunetutil.la \
42 libgnunetats_la_LDFLAGS = \
43 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
46 libgnunet_plugin_ats_proportional_la_SOURCES = \
47 plugin_ats_proportional.c
48 libgnunet_plugin_ats_proportional_la_LIBADD = \
50 $(top_builddir)/src/statistics/libgnunetstatistics.la \
51 $(top_builddir)/src/util/libgnunetutil.la \
53 libgnunet_plugin_ats_proportional_la_LDFLAGS = \
58 libgnunet_plugin_ats_mlp_la_SOURCES = \
60 libgnunet_plugin_ats_mlp_la_LIBADD = \
62 $(top_builddir)/src/statistics/libgnunetstatistics.la \
63 $(top_builddir)/src/util/libgnunetutil.la
64 libgnunet_plugin_ats_mlp_la_LDFLAGS = \
65 $(GN_PLUGIN_LDFLAGS) \
69 libgnunet_plugin_ats_ril_la_SOURCES = \
71 libgnunet_plugin_ats_ril_la_LIBADD = \
73 $(top_builddir)/src/statistics/libgnunetstatistics.la \
74 $(top_builddir)/src/util/libgnunetutil.la \
76 libgnunet_plugin_ats_ril_la_LDFLAGS = \
82 gnunet_service_ats_SOURCES = \
83 gnunet-service-ats.c gnunet-service-ats.h \
84 gnunet-service-ats_addresses.c gnunet-service-ats_addresses.h \
85 gnunet-service-ats_connectivity.c gnunet-service-ats_connectivity.h \
86 gnunet-service-ats_feedback.c gnunet-service-ats_feedback.h \
87 gnunet-service-ats_normalization.c gnunet-service-ats_normalization.h \
88 gnunet-service-ats_performance.c gnunet-service-ats_performance.h \
89 gnunet-service-ats_plugins.c gnunet-service-ats_plugins.h \
90 gnunet-service-ats_preferences.c gnunet-service-ats_preferences.h \
91 gnunet-service-ats_scheduling.c gnunet-service-ats_scheduling.h \
92 gnunet-service-ats_reservations.c gnunet-service-ats_reservations.h
93 gnunet_service_ats_LDADD = \
94 $(top_builddir)/src/statistics/libgnunetstatistics.la \
95 $(top_builddir)/src/util/libgnunetutil.la \
101 test_ats_api_proportional \
102 test_ats_reservation_api_proportional \
114 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
115 TESTS = $(check_PROGRAMS)
118 test_ats_api_proportional_SOURCES = \
120 test_ats_lib.c test_ats_lib.h
121 test_ats_api_proportional_LDADD = \
122 $(top_builddir)/src/util/libgnunetutil.la \
123 $(top_builddir)/src/hello/libgnunethello.la \
124 $(top_builddir)/src/testing/libgnunettesting.la \
127 test_ats_reservation_api_proportional_SOURCES = \
128 test_ats_reservation_api.c \
129 test_ats_lib.c test_ats_lib.h
130 test_ats_reservation_api_proportional_LDADD = \
131 $(top_builddir)/src/util/libgnunetutil.la \
132 $(top_builddir)/src/hello/libgnunethello.la \
133 $(top_builddir)/src/testing/libgnunettesting.la \
136 test_ats_api_ril_SOURCES = \
138 test_ats_lib.c test_ats_lib.h
139 test_ats_api_ril_LDADD = \
140 $(top_builddir)/src/util/libgnunetutil.la \
141 $(top_builddir)/src/hello/libgnunethello.la \
142 $(top_builddir)/src/testing/libgnunettesting.la \
145 test_ats_api_mlp_SOURCES = \
147 test_ats_lib.c test_ats_lib.h
148 test_ats_api_mlp_LDADD = \
149 $(top_builddir)/src/util/libgnunetutil.la \
150 $(top_builddir)/src/hello/libgnunethello.la \
151 $(top_builddir)/src/testing/libgnunettesting.la \
157 test_ats_api_mlp.conf \
158 test_ats_api_ril.conf \
159 test_ats_api_proportional.conf