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
117 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
118 TESTS = $(check_PROGRAMS)
121 test_ats_api_proportional_SOURCES = \
123 test_ats_lib.c test_ats_lib.h
124 test_ats_api_proportional_LDADD = \
125 $(top_builddir)/src/util/libgnunetutil.la \
126 $(top_builddir)/src/hello/libgnunethello.la \
127 $(top_builddir)/src/testing/libgnunettesting.la \
130 test_ats_reservation_api_proportional_SOURCES = \
131 test_ats_reservation_api.c \
132 test_ats_lib.c test_ats_lib.h
133 test_ats_reservation_api_proportional_LDADD = \
134 $(top_builddir)/src/util/libgnunetutil.la \
135 $(top_builddir)/src/hello/libgnunethello.la \
136 $(top_builddir)/src/testing/libgnunettesting.la \
139 test_ats_api_ril_SOURCES = \
141 test_ats_lib.c test_ats_lib.h
142 test_ats_api_ril_LDADD = \
143 $(top_builddir)/src/util/libgnunetutil.la \
144 $(top_builddir)/src/hello/libgnunethello.la \
145 $(top_builddir)/src/testing/libgnunettesting.la \
148 test_ats_api_mlp_SOURCES = \
150 test_ats_lib.c test_ats_lib.h
151 test_ats_api_mlp_LDADD = \
152 $(top_builddir)/src/util/libgnunetutil.la \
153 $(top_builddir)/src/hello/libgnunethello.la \
154 $(top_builddir)/src/testing/libgnunettesting.la \
160 test_ats_api_mlp.conf \
161 test_ats_api_ril.conf \
162 test_ats_api_proportional.conf