clboss/Makefile.am
2020-09-17 08:47:51 +08:00

236 lines
6.6 KiB
Makefile

bin_PROGRAMS = clboss
clboss_SOURCES = \
main.cpp
# These are the actual source files of clboss.
# We separate them here so that we can test parts of
# clboss without having to put a lot of instrumentation
# in the main file.
noinst_LTLIBRARIES = libclboss.la
libclboss_la_SOURCES = \
Boss/JsonInput.cpp \
Boss/JsonInput.hpp \
Boss/Main.cpp \
Boss/Main.hpp \
Boss/Mod/AutoDisconnector.cpp \
Boss/Mod/AutoDisconnector.hpp \
Boss/Mod/BlockTracker.cpp \
Boss/Mod/BlockTracker.hpp \
Boss/Mod/CommandReceiver.cpp \
Boss/Mod/CommandReceiver.hpp \
Boss/Mod/ChannelCandidateInvestigator/Gumshoe.cpp \
Boss/Mod/ChannelCandidateInvestigator/Gumshoe.hpp \
Boss/Mod/ChannelCandidateInvestigator/Main.cpp \
Boss/Mod/ChannelCandidateInvestigator/Main.hpp \
Boss/Mod/ChannelCandidateInvestigator/Manager.cpp \
Boss/Mod/ChannelCandidateInvestigator/Manager.hpp \
Boss/Mod/ChannelCandidateInvestigator/Secretary.cpp \
Boss/Mod/ChannelCandidateInvestigator/Secretary.hpp \
Boss/Mod/ChannelCandidatePreinvestigator.cpp \
Boss/Mod/ChannelCandidatePreinvestigator.hpp \
Boss/Mod/ChannelCreationDecider.cpp \
Boss/Mod/ChannelCreationDecider.hpp \
Boss/Mod/ChannelCreator/Dowser.cpp \
Boss/Mod/ChannelCreator/Dowser.hpp \
Boss/Mod/ChannelCreator/Main.cpp \
Boss/Mod/ChannelCreator/Main.hpp \
Boss/Mod/ChannelCreator/Manager.cpp \
Boss/Mod/ChannelCreator/Manager.hpp \
Boss/Mod/ChannelCreator/Planner.cpp \
Boss/Mod/ChannelCreator/Planner.hpp \
Boss/Mod/ChannelFinderByPopularity.cpp \
Boss/Mod/ChannelFinderByPopularity.hpp \
Boss/Mod/ChannelFundsComputer.cpp \
Boss/Mod/ChannelFundsComputer.hpp \
Boss/Mod/ConnectFinderByDns.cpp \
Boss/Mod/ConnectFinderByDns.hpp \
Boss/Mod/ConnectFinderByHardcode.cpp \
Boss/Mod/ConnectFinderByHardcode.hpp \
Boss/Mod/Connector.cpp \
Boss/Mod/Connector.hpp \
Boss/Mod/InitialConnect.cpp \
Boss/Mod/InitialConnect.hpp \
Boss/Mod/Initiator.cpp \
Boss/Mod/Initiator.hpp \
Boss/Mod/InternetConnectionMonitor.cpp \
Boss/Mod/InternetConnectionMonitor.hpp \
Boss/Mod/JsonOutputter.cpp \
Boss/Mod/JsonOutputter.hpp \
Boss/Mod/ListfundsAnnouncer.cpp \
Boss/Mod/ListfundsAnnouncer.hpp \
Boss/Mod/ListpeersAnalyzer.cpp \
Boss/Mod/ListpeersAnalyzer.hpp \
Boss/Mod/ListpeersAnnouncer.cpp \
Boss/Mod/ListpeersAnnouncer.hpp \
Boss/Mod/Manifester.cpp \
Boss/Mod/Manifester.hpp \
Boss/Mod/NeedsConnectSolicitor.cpp \
Boss/Mod/NeedsConnectSolicitor.hpp \
Boss/Mod/OnchainFeeMonitor.cpp \
Boss/Mod/OnchainFeeMonitor.hpp \
Boss/Mod/OnchainFundsAnnouncer.cpp \
Boss/Mod/OnchainFundsAnnouncer.hpp \
Boss/Mod/Reconnector.cpp \
Boss/Mod/Reconnector.hpp \
Boss/Mod/Rpc.cpp \
Boss/Mod/Rpc.hpp \
Boss/Mod/Timers.cpp \
Boss/Mod/Timers.hpp \
Boss/Mod/Waiter.cpp \
Boss/Mod/Waiter.hpp \
Boss/Mod/all.cpp \
Boss/Mod/all.hpp \
Boss/Msg/Begin.hpp \
Boss/Msg/Block.hpp \
Boss/Msg/ChannelFunds.hpp \
Boss/Msg/CommandRequest.hpp \
Boss/Msg/CommandResponse.hpp \
Boss/Msg/Init.hpp \
Boss/Msg/JsonCin.hpp \
Boss/Msg/JsonCout.hpp \
Boss/Msg/ListfundsResult.hpp \
Boss/Msg/ListpeersAnalyzedResult.hpp \
Boss/Msg/ListpeersResult.hpp \
Boss/Msg/ManifestCommand.hpp \
Boss/Msg/ManifestHook.hpp \
Boss/Msg/ManifestNotification.hpp \
Boss/Msg/Manifestation.hpp \
Boss/Msg/NeedsConnect.hpp \
Boss/Msg/Network.hpp \
Boss/Msg/Notification.hpp \
Boss/Msg/OnchainFee.hpp \
Boss/Msg/OnchainFunds.hpp \
Boss/Msg/PreinvestigateChannelCandidates.hpp \
Boss/Msg/ProposeChannelCandidates.hpp \
Boss/Msg/ProposeConnectCandidates.hpp \
Boss/Msg/RequestChannelCreation.hpp \
Boss/Msg/RequestConnect.hpp \
Boss/Msg/ResponseConnect.hpp \
Boss/Msg/SolicitChannelCandidates.hpp \
Boss/Msg/SolicitConnectCandidates.hpp \
Boss/Msg/TaskCompletion.hpp \
Boss/Msg/Timer10Minutes.hpp \
Boss/Msg/TimerRandomDaily.hpp \
Boss/Msg/TimerRandomHourly.hpp \
Boss/Shutdown.hpp \
Boss/concurrent.cpp \
Boss/concurrent.hpp \
Boss/log.cpp \
Boss/log.hpp \
Boss/random_engine.cpp \
Boss/random_engine.hpp \
Boss/open_rpc_socket.cpp \
Boss/open_rpc_socket.hpp \
DnsSeed/Detail/decode_bech32_node.cpp \
DnsSeed/Detail/decode_bech32_node.hpp \
DnsSeed/Detail/parse_dig_srv.cpp \
DnsSeed/Detail/parse_dig_srv.hpp \
DnsSeed/get.cpp \
DnsSeed/get.hpp \
Ev/Io.hpp \
Ev/ThreadPool.cpp \
Ev/ThreadPool.hpp \
Ev/concurrent.cpp \
Ev/concurrent.hpp \
Ev/map.hpp \
Ev/runcmd.cpp \
Ev/runcmd.hpp \
Ev/start.cpp \
Ev/start.hpp \
Ev/yield.cpp \
Ev/yield.hpp \
Jsmn/Detail/EndAdvancer.cpp \
Jsmn/Detail/EndAdvancer.hpp \
Jsmn/Detail/ParseResult.hpp \
Jsmn/Detail/Str.cpp \
Jsmn/Detail/Str.hpp \
Jsmn/Detail/Token.cpp \
Jsmn/Detail/Token.hpp \
Jsmn/Detail/Type.hpp \
Jsmn/Object.cpp \
Jsmn/Object.hpp \
Jsmn/Parser.cpp \
Jsmn/Parser.hpp \
Jsmn/jsonify_string.cpp \
Jsmn/jsonify_string.hpp \
Json/Out.hpp \
Ln/Amount.cpp \
Ln/Amount.hpp \
Ln/NodeId.cpp \
Ln/NodeId.hpp \
Ln/Scid.cpp \
Ln/Scid.hpp \
Net/Connector.hpp \
Net/Detail/AddrInfoReleaser.cpp \
Net/Detail/AddrInfoReleaser.hpp \
Net/DirectConnector.cpp \
Net/DirectConnector.hpp \
Net/Fd.cpp \
Net/Fd.hpp \
Net/ProxyConnector.cpp \
Net/ProxyConnector.hpp \
Net/SocketFd.cpp \
Net/SocketFd.hpp \
S/Bus.cpp \
S/Bus.hpp \
S/Detail/Signal.hpp \
S/Detail/SignalBase.hpp \
Sqlite3.hpp \
Sqlite3/Db.cpp \
Sqlite3/Db.hpp \
Sqlite3/Detail/binds.cpp \
Sqlite3/Detail/binds.hpp \
Sqlite3/Detail/columns.cpp \
Sqlite3/Detail/columns.hpp \
Sqlite3/Query.cpp \
Sqlite3/Query.hpp \
Sqlite3/Result.cpp \
Sqlite3/Result.hpp \
Sqlite3/Tx.cpp \
Sqlite3/Tx.hpp \
Stats/RunningMean.cpp \
Stats/RunningMean.hpp \
Util/Rw.cpp \
Util/Rw.hpp \
Util/Str.cpp \
Util/Str.hpp \
Util/make_unique.hpp \
Util/stringify.hpp
# Externals
EXTRA_DIST = \
external/jsmn/LICENSE \
external/jsmn/jsmn.h
AM_CXXFLAGS = -Wall -Werror $(PTHREAD_CFLAGS) $(libev_CFLAGS) $(SQLITE3_CFLAGS)
AM_CPPFLAGS = -I $(top_srcdir)/external/jsmn
LDADD = libclboss.la $(PTHREAD_LIBS) $(libev_LIBS) $(SQLITE3_LIBS)
ACLOCAL_AMFLAGS = -I m4
AM_DEFAULT_SOURCE_EXT = .cpp
TESTS = \
tests/boss/channelcandidateinvestigator/test_gumshoe \
tests/boss/channelcandidateinvestigator/test_secretary \
tests/boss/test_channelcreationdecider \
tests/boss/test_channelcreator_planner \
tests/boss/test_needsconnectsolicitor \
tests/boss/test_rpc \
tests/boss/test_version \
tests/boss/test_waiter_timed \
tests/dnsseed/test_decode_bech32_node \
tests/dnsseed/test_get \
tests/dnsseed/test_parse_dig_srv \
tests/ev/test_concurrent_simple \
tests/ev/test_io_mem_leak \
tests/ev/test_map \
tests/ev/test_runcmd \
tests/ev/test_throw_in_then \
tests/json/test_out_simple \
tests/ln/test_amount \
tests/ln/test_nodeid \
tests/ln/test_scid \
tests/s/test_bus \
tests/sqlite3/test_sqlite3 \
tests/stats/test_running_mean
check_PROGRAMS = $(TESTS)