aboutsummaryrefslogtreecommitdiff
path: root/src/ats/Makefile.am
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-10-08 16:34:07 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-10-08 16:34:07 +0000
commit8929c943f1f57aaf48a1bc3f6edc9939698e688b (patch)
tree6c7c3c01b13826a72b7cc9e2d71923304f00f061 /src/ats/Makefile.am
parente6c06a3f18b4c3a5a3cae2aa572c927d737ce532 (diff)
ats solver are now implemented as plugins
initial commit: tests pass, no crashes with tests ...
Diffstat (limited to 'src/ats/Makefile.am')
-rw-r--r--src/ats/Makefile.am35
1 files changed, 30 insertions, 5 deletions
diff --git a/src/ats/Makefile.am b/src/ats/Makefile.am
index 1fbd434ee2..b86c537249 100644
--- a/src/ats/Makefile.am
+++ b/src/ats/Makefile.am
@@ -1,5 +1,7 @@
AM_CPPFLAGS = -I$(top_srcdir)/src/include
+plugindir = $(libdir)/gnunet
+
pkgcfgdir= $(pkgdatadir)/config.d/
libexecdir= $(pkglibdir)/libexec/
@@ -17,7 +19,7 @@ endif
if HAVE_LIBGLPK
GN_LIBGLPK = -lglpk
- GN_MLP_SRC = gnunet-service-ats-solver_mlp.c gnunet-service-ats-solver_mlp.h
+ GN_MLP_LIB = libgnunet_plugin_ats_mlp.la
GN_MLP_TEST = test_ats_mlp
GN_MLP_TEST_UPDATE = test_ats_mlp_update
GN_MLP_TEST_AVG = test_ats_mlp_averaging
@@ -32,6 +34,10 @@ endif
lib_LTLIBRARIES = libgnunetats.la
+plugin_LTLIBRARIES = \
+ libgnunet_plugin_ats_proportional.la \
+ libgnunet_plugin_ats_mlp.la
+
libgnunetats_la_SOURCES = \
ats_api_scheduling.c \
ats_api_performance.c
@@ -48,13 +54,14 @@ libgnunetats_la_LDFLAGS = \
libexec_PROGRAMS = \
gnunet-service-ats
+# gnunet-service-ats-solver_proportional.c gnunet-service-ats-solver_proportional.h
+# $(GN_MLP_SRC)
+# gnunet-service-ats-solver_ril.c gnunet-service-ats-solver_ril.h
+
gnunet_service_ats_SOURCES = \
gnunet-service-ats.c gnunet-service-ats.h\
gnunet-service-ats_addresses.c gnunet-service-ats_addresses.h \
gnunet-service-ats_normalization.c gnunet-service-ats_normalization.h \
- gnunet-service-ats-solver_proportional.c gnunet-service-ats-solver_proportional.h \
- $(GN_MLP_SRC) \
- gnunet-service-ats-solver_ril.c gnunet-service-ats-solver_ril.h \
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
@@ -62,7 +69,6 @@ gnunet_service_ats_LDADD = \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
$(top_builddir)/src/util/libgnunetutil.la \
libgnunetats.la \
- $(GN_LIBGLPK) \
$(GN_LIBINTL)
gnunet_service_ats_DEPENDENCIES = \
libgnunetats.la
@@ -121,6 +127,25 @@ if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
+libgnunet_plugin_ats_proportional_la_SOURCES = \
+ libgnunet_plugin_ats_proportional.c
+libgnunet_plugin_ats_proportional_la_LIBADD = \
+ $(top_builddir)/src/statistics/libgnunetstatistics.la \
+ $(top_builddir)/src/util/libgnunetutil.la \
+ $(LTLIBINTL)
+
+if HAVE_LIBGLPK
+endif
+libgnunet_plugin_ats_mlp_la_SOURCES = \
+ libgnunet_plugin_ats_mlp.c
+libgnunet_plugin_ats_mlp_la_LIBADD = \
+ $(top_builddir)/src/statistics/libgnunetstatistics.la \
+ $(top_builddir)/src/util/libgnunetutil.la \
+ $(GN_LIBGLPK)
+libgnunet_plugin_ats_mlp_la_LDFLAGS = \
+ $(GN_LIBGLPK)
+
+
# scheduling API tests
test_ats_api_scheduling_init_SOURCES = \