diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-02 08:54:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-02 08:54:18 +0000 |
commit | edb4ddf051d91a2169d46f07b1bfea6df4d216bb (patch) | |
tree | e3b1a1095ece34ca21a420a290ad740663ec36a5 /src | |
parent | a2417d5b3fc632fb1bacca6594c50a0ef7ffd23a (diff) |
-noinst-ing non-functional binaries/libraries that just exist as examples/templates
Diffstat (limited to 'src')
-rw-r--r-- | src/block/Makefile.am | 11 | ||||
-rw-r--r-- | src/consensus/Makefile.am | 4 | ||||
-rw-r--r-- | src/datacache/Makefile.am | 32 | ||||
-rw-r--r-- | src/datastore/Makefile.am | 56 | ||||
-rw-r--r-- | src/dht/Makefile.am | 6 | ||||
-rw-r--r-- | src/template/Makefile.am | 18 | ||||
-rw-r--r-- | src/transport/Makefile.am | 6 |
7 files changed, 77 insertions, 56 deletions
diff --git a/src/block/Makefile.am b/src/block/Makefile.am index 19a91f7703..c54a4c246f 100644 --- a/src/block/Makefile.am +++ b/src/block/Makefile.am @@ -14,9 +14,12 @@ endif lib_LTLIBRARIES = libgnunetblock.la plugin_LTLIBRARIES = \ - libgnunet_plugin_block_template.la \ - libgnunet_plugin_block_test.la + libgnunet_plugin_block_test.la +# Real plugins should of course go into +# plugin_LTLIBRARIES +noinst_LTLIBRARIES = \ + libgnunet_plugin_block_template.la libgnunet_plugin_block_template_la_SOURCES = \ plugin_block_template.c @@ -38,11 +41,11 @@ libgnunet_plugin_block_test_la_LDFLAGS = \ libgnunetblock_la_SOURCES = \ - block.c + block.c libgnunetblock_la_LIBADD = \ $(top_builddir)/src/util/libgnunetutil.la libgnunetblock_la_DEPENDENCIES = \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la libgnunetblock_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) \ -version-info 0:0:0 diff --git a/src/consensus/Makefile.am b/src/consensus/Makefile.am index 27a0eb2e97..eb0370eb54 100644 --- a/src/consensus/Makefile.am +++ b/src/consensus/Makefile.am @@ -22,11 +22,12 @@ bin_PROGRAMS = \ libexec_PROGRAMS = \ gnunet-service-consensus -# FIXME: add option "configure --with-evil"? if HAVE_EXPERIMENTAL +if ENABLE_MALICIOUS libexec_PROGRAMS += \ gnunet-service-evil-consensus endif +endif lib_LTLIBRARIES = \ libgnunetconsensus.la @@ -83,4 +84,3 @@ test_consensus_api_LDADD = \ EXTRA_DIST = \ test_consensus.conf - diff --git a/src/datacache/Makefile.am b/src/datacache/Makefile.am index 0219ecc12c..9b66636e5e 100644 --- a/src/datacache/Makefile.am +++ b/src/datacache/Makefile.am @@ -28,11 +28,11 @@ lib_LTLIBRARIES = \ libgnunetdatacache.la libgnunetdatacache_la_SOURCES = \ - datacache.c + datacache.c libgnunetdatacache_la_LIBADD = \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la \ - $(GN_LIBINTL) + $(GN_LIBINTL) libgnunetdatacache_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) $(WINFLAGS) \ -version-info 0:1:0 @@ -41,8 +41,12 @@ libgnunetdatacache_la_LDFLAGS = \ plugin_LTLIBRARIES = \ $(SQLITE_PLUGIN) \ $(POSTGRES_PLUGIN) \ - libgnunet_plugin_datacache_heap.la \ - libgnunet_plugin_datacache_template.la + libgnunet_plugin_datacache_heap.la + +# Real plugins should of course go into +# plugin_LTLIBRARIES +noinst_LTLIBRARIES = \ + libgnunet_plugin_datacache_template.la libgnunet_plugin_datacache_sqlite_la_SOURCES = \ @@ -120,7 +124,7 @@ endif check_PROGRAMS = \ $(SQLITE_TESTS) \ $(HEAP_TESTS) \ - $(POSTGRES_TESTS) + $(POSTGRES_TESTS) if ENABLE_TEST_RUN AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; @@ -132,63 +136,63 @@ test_datacache_sqlite_SOURCES = \ test_datacache_sqlite_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datacache_quota_sqlite_SOURCES = \ test_datacache_quota.c test_datacache_quota_sqlite_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_datacache_sqlite_SOURCES = \ perf_datacache.c perf_datacache_sqlite_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datacache_heap_SOURCES = \ test_datacache.c test_datacache_heap_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datacache_quota_heap_SOURCES = \ test_datacache_quota.c test_datacache_quota_heap_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_datacache_heap_SOURCES = \ perf_datacache.c perf_datacache_heap_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datacache_postgres_SOURCES = \ test_datacache.c test_datacache_postgres_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datacache_quota_postgres_SOURCES = \ test_datacache_quota.c test_datacache_quota_postgres_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_datacache_postgres_SOURCES = \ perf_datacache.c perf_datacache_postgres_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatacache.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la EXTRA_DIST = \ test_datacache_data_sqlite.conf \ diff --git a/src/datastore/Makefile.am b/src/datastore/Makefile.am index 241fa5263d..4ad0ae0287 100644 --- a/src/datastore/Makefile.am +++ b/src/datastore/Makefile.am @@ -24,11 +24,11 @@ lib_LTLIBRARIES = \ libgnunetdatastore.la libgnunetdatastore_la_SOURCES = \ - datastore_api.c datastore.h + datastore_api.c datastore.h libgnunetdatastore_la_LIBADD = \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la \ - $(GN_LIBINTL) + $(GN_LIBINTL) libgnunetdatastore_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) $(WINFLAGS) \ -version-info 1:0:0 @@ -40,14 +40,14 @@ libexec_PROGRAMS = \ gnunet-service-datastore gnunet_service_datastore_SOURCES = \ - gnunet-service-datastore.c + gnunet-service-datastore.c gnunet_service_datastore_LDADD = \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) gnunet_datastore_SOURCES = \ - gnunet-datastore.c + gnunet-datastore.c gnunet_datastore_LDADD = \ libgnunetdatastore.la \ $(top_builddir)/src/util/libgnunetutil.la \ @@ -104,8 +104,12 @@ plugin_LTLIBRARIES = \ $(SQLITE_PLUGIN) \ $(MYSQL_PLUGIN) \ $(POSTGRES_PLUGIN) \ - libgnunet_plugin_datastore_heap.la \ - libgnunet_plugin_datastore_template.la + libgnunet_plugin_datastore_heap.la + +# Real plugins should of course go into +# plugin_LTLIBRARIES +noinst_LTLIBRARIES = \ + libgnunet_plugin_datastore_template.la libgnunet_plugin_datastore_sqlite_la_SOURCES = \ @@ -178,33 +182,33 @@ test_datastore_api_heap_SOURCES = \ test_datastore_api_heap_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datastore_api_management_heap_SOURCES = \ test_datastore_api_management.c test_datastore_api_management_heap_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_datastore_api_heap_SOURCES = \ perf_datastore_api.c perf_datastore_api_heap_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_plugin_datastore_heap_SOURCES = \ perf_plugin_datastore.c perf_plugin_datastore_heap_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_plugin_datastore_heap_SOURCES = \ test_plugin_datastore.c test_plugin_datastore_heap_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datastore_api_sqlite_SOURCES = \ @@ -212,33 +216,33 @@ test_datastore_api_sqlite_SOURCES = \ test_datastore_api_sqlite_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datastore_api_management_sqlite_SOURCES = \ test_datastore_api_management.c test_datastore_api_management_sqlite_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_datastore_api_sqlite_SOURCES = \ perf_datastore_api.c perf_datastore_api_sqlite_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_plugin_datastore_sqlite_SOURCES = \ perf_plugin_datastore.c perf_plugin_datastore_sqlite_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_plugin_datastore_sqlite_SOURCES = \ test_plugin_datastore.c test_plugin_datastore_sqlite_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datastore_api_mysql_SOURCES = \ @@ -246,33 +250,33 @@ test_datastore_api_mysql_SOURCES = \ test_datastore_api_mysql_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datastore_api_management_mysql_SOURCES = \ test_datastore_api_management.c test_datastore_api_management_mysql_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_datastore_api_mysql_SOURCES = \ perf_datastore_api.c perf_datastore_api_mysql_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_plugin_datastore_mysql_SOURCES = \ test_plugin_datastore.c test_plugin_datastore_mysql_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_plugin_datastore_mysql_SOURCES = \ perf_plugin_datastore.c perf_plugin_datastore_mysql_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datastore_api_postgres_SOURCES = \ @@ -280,33 +284,33 @@ test_datastore_api_postgres_SOURCES = \ test_datastore_api_postgres_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_datastore_api_management_postgres_SOURCES = \ test_datastore_api_management.c test_datastore_api_management_postgres_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_datastore_api_postgres_SOURCES = \ perf_datastore_api.c perf_datastore_api_postgres_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ libgnunetdatastore.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la test_plugin_datastore_postgres_SOURCES = \ test_plugin_datastore.c test_plugin_datastore_postgres_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la perf_plugin_datastore_postgres_SOURCES = \ perf_plugin_datastore.c perf_plugin_datastore_postgres_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la EXTRA_DIST = \ diff --git a/src/dht/Makefile.am b/src/dht/Makefile.am index 8bfcc4b7d6..b252867b7e 100644 --- a/src/dht/Makefile.am +++ b/src/dht/Makefile.am @@ -47,9 +47,13 @@ libgnunet_plugin_block_dht_la_LDFLAGS = \ libexec_PROGRAMS = \ - gnunet-service-dht \ + gnunet-service-dht + +if HAVE_EXPERIMENTAL +libexec_PROGRAMS += \ gnunet-service-dht-xvine \ gnunet-service-dht-whanau +endif noinst_PROGRAMS = \ gnunet-dht-monitor \ diff --git a/src/template/Makefile.am b/src/template/Makefile.am index b235109bce..bdd5d6ebf4 100644 --- a/src/template/Makefile.am +++ b/src/template/Makefile.am @@ -9,27 +9,30 @@ dist_pkgcfg_DATA = \ template.conf if MINGW - WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols + WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols endif if USE_COVERAGE AM_CFLAGS = -fprofile-arcs -ftest-coverage endif -bin_PROGRAMS = \ - gnunet-template +# Note: In a real installation, +# bin_PROGRAMS should be used for gnunet-template +# libexec_PROGRAMS should be used for gnunet-service-template -libexec_PROGRAMS = \ +noinst_PROGRAMS = \ + gnunet-template \ gnunet-service-template + gnunet_template_SOURCES = \ - gnunet-template.c + gnunet-template.c gnunet_template_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) gnunet_service_template_SOURCES = \ - gnunet-service-template.c + gnunet-service-template.c gnunet_service_template_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ $(GN_LIBINTL) @@ -46,5 +49,4 @@ endif test_template_api_SOURCES = \ test_template_api.c test_template_api_LDADD = \ - $(top_builddir)/src/util/libgnunetutil.la - + $(top_builddir)/src/util/libgnunetutil.la diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 42432a403e..950b0a9a03 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am @@ -278,7 +278,11 @@ plugin_LTLIBRARIES = \ $(HTTP_SERVER_PLUGIN_LA) \ $(HTTPS_SERVER_PLUGIN_LA) \ $(WLAN_PLUGIN_LA) \ - $(BT_PLUGIN_LA) \ + $(BT_PLUGIN_LA) + +# Note: real plugins of course need to be added +# to the plugin_LTLIBRARIES above +noinst_LTLIBRARIES = \ libgnunet_plugin_transport_template.la libgnunet_plugin_transport_tcp_la_SOURCES = \ |