From 41716952f1d0508fb621cb5fec31406d3bd96192 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 7 May 2014 12:07:16 +0000 Subject: Renamed directory --- src/cadet/Makefile.am | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 194 insertions(+) create mode 100644 src/cadet/Makefile.am (limited to 'src/cadet/Makefile.am') diff --git a/src/cadet/Makefile.am b/src/cadet/Makefile.am new file mode 100644 index 000000000..e9aaec402 --- /dev/null +++ b/src/cadet/Makefile.am @@ -0,0 +1,194 @@ +AM_CPPFLAGS = -I$(top_srcdir)/src/include + +if MINGW + WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols +endif + +if USE_COVERAGE + AM_CFLAGS = --coverage -O0 + XLIB = -lgcov +endif + +pkgcfgdir= $(pkgdatadir)/config.d/ + +libexecdir= $(pkglibdir)/libexec/ + +pkgcfg_DATA = \ + cadet.conf + +plugindir = $(libdir)/gnunet + +AM_CLFAGS = -g + +libexec_PROGRAMS = \ + gnunet-service-cadet $(EXP_LIBEXEC) + +bin_PROGRAMS = \ + gnunet-cadet + +lib_LTLIBRARIES = \ + libgnunetcadet.la $(EXP_LIB) + +libgnunetcadet_la_SOURCES = \ + cadet_api.c cadet_common.c +libgnunetcadet_la_LIBADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(XLIB) \ + $(LTLIBINTL) +libgnunetcadet_la_LDFLAGS = \ + $(GN_LIB_LDFLAGS) $(WINFLAGS) \ + -version-info 5:0:0 + +gnunet_cadet_SOURCES = \ + gnunet-cadet.c +gnunet_cadet_LDADD = \ + $(top_builddir)/src/cadet/libgnunetcadet.la \ + $(top_builddir)/src/util/libgnunetutil.la +gnunet_cadet_DEPENDENCIES = \ + libgnunetcadet.la + +gnunet_service_cadet_SOURCES = \ + gnunet-service-cadet_tunnel.c gnunet-service-cadet_tunnel.h \ + gnunet-service-cadet_connection.c gnunet-service-cadet_connection.h \ + gnunet-service-cadet_channel.c gnunet-service-cadet_channel.h \ + gnunet-service-cadet_local.c gnunet-service-cadet_local.h \ + gnunet-service-cadet_peer.c gnunet-service-cadet_peer.h \ + gnunet-service-cadet_dht.c gnunet-service-cadet_dht.h \ + gnunet-service-cadet_hello.c gnunet-service-cadet_hello.h \ + cadet_path.c cadet_path.h \ + cadet_common.c \ + gnunet-service-cadet.c +gnunet_service_cadet_CFLAGS = $(AM_CFLAGS) +gnunet_service_cadet_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/dht/libgnunetdht.la \ + $(top_builddir)/src/statistics/libgnunetstatistics.la \ + $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ + $(top_builddir)/src/hello/libgnunethello.la \ + $(top_builddir)/src/block/libgnunetblock.la +gnunet_service_cadet_DEPENDENCIES = \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/dht/libgnunetdht.la \ + $(top_builddir)/src/statistics/libgnunetstatistics.la \ + $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ + $(top_builddir)/src/hello/libgnunethello.la \ + $(top_builddir)/src/block/libgnunetblock.la +if LINUX + gnunet_service_cadet_LDFLAGS = -lrt +endif + + +if HAVE_TESTING + noinst_LIBRARIES = libgnunetcadettest.a $(noinst_LIB_EXP) + noinst_PROGRAMS = gnunet-cadet-profiler +endif + +libgnunetcadettest_a_SOURCES = \ + cadet_test_lib.c cadet_test_lib.h +libgnunetcadettest_a_LIBADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/testbed/libgnunettestbed.la \ + $(top_builddir)/src/cadet/libgnunetcadet.la +libgnunetcadettest_a_DEPENDENCIES = \ + libgnunetcadet.la + +if HAVE_TESTING +check_PROGRAMS = \ + test_cadet_single \ + test_cadet_local \ + test_cadet_forward \ + test_cadet_signal \ + test_cadet_keepalive \ + test_cadet_speed \ + test_cadet_speed_ack \ + test_cadet_speed_backwards \ + test_cadet_speed_reliable \ + test_cadet_speed_reliable_backwards +endif + +ld_cadet_test_lib = \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(top_builddir)/src/testing/libgnunettesting.la \ + $(top_builddir)/src/cadet/libgnunetcadettest.a \ + $(top_builddir)/src/cadet/libgnunetcadet.la \ + $(top_builddir)/src/testbed/libgnunettestbed.la \ + $(top_builddir)/src/statistics/libgnunetstatistics.la + +dep_cadet_test_lib = \ + libgnunetcadet.la \ + libgnunetcadettest.a \ + $(top_builddir)/src/statistics/libgnunetstatistics.la + + +gnunet_cadet_profiler_SOURCES = \ + gnunet-cadet-profiler.c +gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib) +gnunet_cadet_profiler_DEPENDENCIES = $(dep_cadet_test_lib) + + +test_cadet_single_SOURCES = \ + test_cadet_single.c +test_cadet_single_LDADD = $(ld_cadet_test_lib) +test_cadet_single_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_local_SOURCES = \ + test_cadet_local.c +test_cadet_local_LDADD = $(ld_cadet_test_lib) +test_cadet_local_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_forward_SOURCES = \ + test_cadet.c +test_cadet_forward_LDADD = $(ld_cadet_test_lib) +test_cadet_forward_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_signal_SOURCES = \ + test_cadet.c +test_cadet_signal_LDADD = $(ld_cadet_test_lib) +test_cadet_signal_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_keepalive_SOURCES = \ + test_cadet.c +test_cadet_keepalive_LDADD = $(ld_cadet_test_lib) +test_cadet_keepalive_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_speed_SOURCES = \ + test_cadet.c +test_cadet_speed_LDADD = $(ld_cadet_test_lib) +test_cadet_speed_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_speed_ack_SOURCES = \ + test_cadet.c +test_cadet_speed_ack_LDADD = $(ld_cadet_test_lib) +test_cadet_speed_ack_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_speed_backwards_SOURCES = \ + test_cadet.c +test_cadet_speed_backwards_LDADD = $(ld_cadet_test_lib) +test_cadet_speed_backwards_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_speed_reliable_SOURCES = \ + test_cadet.c +test_cadet_speed_reliable_LDADD = $(ld_cadet_test_lib) +test_cadet_speed_reliable_DEPENDENCIES = $(dep_cadet_test_lib) + +test_cadet_speed_reliable_backwards_SOURCES = \ + test_cadet.c +test_cadet_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib) +test_cadet_speed_reliable_backwards_DEPENDENCIES = $(dep_cadet_test_lib) + + +if ENABLE_TEST_RUN +AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; +TESTS = \ + $(check_PROGRAMS) +endif + +EXTRA_DIST = \ + cadet.h cadet_protocol.h \ + test_cadet.conf \ + test_cadet_drop.conf + -- cgit v1.2.3