X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fcore%2FMakefile.am;h=2723151c5ee451fd6a961ff52034b479054383e3;hb=17f5db6f7c8d60930367738b3d872fbf891486ee;hp=f9c1a18e0f46797b879d9c428076e560cd909e3d;hpb=376b5f749c03e1ff149c2e8248eed9bec928872a;p=oweals%2Fgnunet.git diff --git a/src/core/Makefile.am b/src/core/Makefile.am index f9c1a18e0..2723151c5 100644 --- a/src/core/Makefile.am +++ b/src/core/Makefile.am @@ -1,4 +1,12 @@ -INCLUDES = -I$(top_srcdir)/src/include +# This Makefile.am is in the public domain +AM_CPPFLAGS = -I$(top_srcdir)/src/include + +pkgcfgdir= $(pkgdatadir)/config.d/ + +libexecdir= $(pkglibdir)/libexec/ + +pkgcfg_DATA = \ + core.conf if MINGW WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols @@ -15,55 +23,43 @@ lib_LTLIBRARIES = \ libgnunetcore_la_SOURCES = \ core_api.c core.h \ - core_api_iterate_peers.c + core_api_monitor_peers.c libgnunetcore_la_LIBADD = \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) $(XLIB) libgnunetcore_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) $(WINFLAGS) \ - -version-info 0:0:0 + -version-info 0:1:0 +libexec_PROGRAMS = \ + gnunet-service-core + bin_PROGRAMS = \ - gnunet-service-core \ - gnunet-service-core-new \ - gnunet-core-list-connections + gnunet-core gnunet_service_core_SOURCES = \ - gnunet-service-core.c -gnunet_service_core_LDADD = \ - $(top_builddir)/src/hello/libgnunethello.la \ - $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ - $(top_builddir)/src/statistics/libgnunetstatistics.la \ - $(top_builddir)/src/transport/libgnunettransport.la \ - $(top_builddir)/src/util/libgnunetutil.la \ - $(GN_LIBINTL) -lz - -gnunet_service_core_new_SOURCES = \ - gnunet-service-core-new.c gnunet-service-core.h \ - gnunet-service-core_clients.c gnunet-service-core_clients.h \ - gnunet-service-core_neighbours.c gnunet-service-core_neighbours.h \ + gnunet-service-core.c gnunet-service-core.h \ gnunet-service-core_kx.c gnunet-service-core_kx.h \ gnunet-service-core_sessions.c gnunet-service-core_sessions.h \ gnunet-service-core_typemap.c gnunet-service-core_typemap.h -gnunet_service_core_new_LDADD = \ - $(top_builddir)/src/hello/libgnunethello.la \ - $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ +gnunet_service_core_LDADD = \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/transport/libgnunettransport.la \ $(top_builddir)/src/util/libgnunetutil.la \ - $(GN_LIBINTL) -lz + $(GN_LIBINTL) $(Z_LIBS) -gnunet_core_list_connections_SOURCES = \ - gnunet-core-list-connections.c -gnunet_core_list_connections_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ - $(top_builddir)/src/transport/libgnunettransport.la \ - $(top_builddir)/src/hello/libgnunethello.la \ +gnunet_core_SOURCES = \ + gnunet-core.c +gnunet_core_LDADD = \ + libgnunetcore.la \ $(top_builddir)/src/util/libgnunetutil.la -gnunet_core_list_connections_DEPENDENCIES = \ - libgnunetcore.la + +if HAVE_TESTING + TESTING_TESTS = \ + test_core_api_send_to_self +endif check_PROGRAMS = \ test_core_api_start_only \ @@ -72,67 +68,68 @@ check_PROGRAMS = \ test_core_quota_compliance_symmetric \ test_core_quota_compliance_asymmetric_send_limited \ test_core_quota_compliance_asymmetric_recv_limited \ - test_core_api_send_to_self + $(TESTING_TESTS) if ENABLE_TEST_RUN +AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; TESTS = $(check_PROGRAMS) endif test_core_api_SOURCES = \ test_core_api.c test_core_api_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ + libgnunetcore.la \ $(top_builddir)/src/transport/libgnunettransport.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/ats/libgnunetats.la \ + $(top_builddir)/src/util/libgnunetutil.la test_core_api_reliability_SOURCES = \ test_core_api_reliability.c test_core_api_reliability_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ - $(top_builddir)/src/transport/libgnunettransport.la \ - $(top_builddir)/src/util/libgnunetutil.la - -test_core_api_preferences_SOURCES = \ - test_core_api_preferences.c -test_core_api_preferences_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ + libgnunetcore.la \ $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/util/libgnunetutil.la test_core_api_send_to_self_SOURCES = \ test_core_api_send_to_self.c test_core_api_send_to_self_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ + libgnunetcore.la \ + $(top_builddir)/src/testing/libgnunettesting.la \ $(top_builddir)/src/transport/libgnunettransport.la \ $(top_builddir)/src/util/libgnunetutil.la test_core_api_start_only_SOURCES = \ test_core_api_start_only.c test_core_api_start_only_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/testing/libgnunettesting.la \ + libgnunetcore.la \ $(top_builddir)/src/util/libgnunetutil.la test_core_quota_compliance_symmetric_SOURCES = \ test_core_quota_compliance.c test_core_quota_compliance_symmetric_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ + libgnunetcore.la \ $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la test_core_quota_compliance_asymmetric_send_limited_SOURCES = \ test_core_quota_compliance.c test_core_quota_compliance_asymmetric_send_limited_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ + libgnunetcore.la \ $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la test_core_quota_compliance_asymmetric_recv_limited_SOURCES = \ test_core_quota_compliance.c test_core_quota_compliance_asymmetric_recv_limited_LDADD = \ - $(top_builddir)/src/core/libgnunetcore.la \ + libgnunetcore.la \ $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/ats/libgnunetats.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la @@ -144,8 +141,6 @@ EXTRA_DIST = \ test_core_api_send_to_self.conf \ test_core_quota_asymmetric_recv_limited_peer1.conf \ test_core_quota_asymmetric_recv_limited_peer2.conf \ - test_core_quota_asymmetric_send_limited_peer1.conf \ - test_core_quota_asymmetric_send_limited_peer2.conf \ test_core_quota_asymmetric_send_limit_peer1.conf \ test_core_quota_asymmetric_send_limit_peer2.conf \ test_core_quota_peer1.conf \