2022-07-16 15:18:27 +02:00
|
|
|
DEVTOOLS := devtools/bolt11-cli devtools/decodemsg devtools/onion devtools/dump-gossipstore devtools/gossipwith devtools/create-gossipstore devtools/mkcommit devtools/mkfunding devtools/mkclose devtools/mkgossip devtools/mkencoded devtools/mkquery devtools/lightning-checkmessage devtools/topology devtools/route devtools/bolt12-cli devtools/encodeaddr devtools/features devtools/fp16 devtools/rune
|
2020-08-29 10:13:52 +02:00
|
|
|
ifeq ($(HAVE_SQLITE3),1)
|
|
|
|
DEVTOOLS += devtools/checkchannels
|
|
|
|
endif
|
2020-04-01 05:53:22 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
DEVTOOLS_TOOL_SRC := $(DEVTOOLS:=.c) devtools/print_wire.c devtools/clean_topo.c
|
|
|
|
DEVTOOLS_TOOL_OBJS := $(DEVTOOLS_TOOL_SRC:.c=.o)
|
2017-11-22 01:26:08 +01:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
# Make sure these depend on everything.
|
|
|
|
ALL_C_SOURCES += $(DEVTOOLS_TOOL_SRC)
|
|
|
|
ALL_C_HEADERS +=
|
|
|
|
ALL_PROGRAMS += $(DEVTOOLS)
|
2019-07-16 01:20:37 +02:00
|
|
|
|
2018-02-01 01:08:37 +01:00
|
|
|
DEVTOOLS_COMMON_OBJS := \
|
2019-02-20 12:31:48 +01:00
|
|
|
common/amount.o \
|
2021-09-21 09:23:10 +02:00
|
|
|
common/autodata.o \
|
2022-02-16 22:36:47 +01:00
|
|
|
common/coin_mvt.o \
|
2018-06-28 03:34:47 +02:00
|
|
|
common/base32.o \
|
2017-11-22 01:26:08 +01:00
|
|
|
common/bech32.o \
|
2018-04-23 16:20:55 +02:00
|
|
|
common/bech32_util.o \
|
2019-07-30 07:25:03 +02:00
|
|
|
common/bigsize.o \
|
2017-11-22 01:26:08 +01:00
|
|
|
common/bolt11.o \
|
2021-06-22 20:25:59 +02:00
|
|
|
common/blockheight_states.o \
|
2020-05-15 12:29:53 +02:00
|
|
|
common/channel_id.o \
|
2022-06-19 09:16:11 +02:00
|
|
|
common/configdir.o \
|
2019-09-27 02:02:34 +02:00
|
|
|
common/decode_array.o \
|
2019-09-05 03:07:16 +02:00
|
|
|
common/features.o \
|
2019-12-12 15:07:53 +01:00
|
|
|
common/fee_states.o \
|
2017-11-22 01:26:08 +01:00
|
|
|
common/hash_u5.o \
|
2020-03-20 02:29:24 +01:00
|
|
|
common/hmac.o \
|
2019-12-12 15:07:53 +01:00
|
|
|
common/htlc_state.o \
|
2022-07-04 05:49:38 +02:00
|
|
|
common/json_parse.o \
|
|
|
|
common/json_parse_simple.o \
|
2019-09-06 06:42:05 +02:00
|
|
|
common/memleak.o \
|
2019-04-08 11:58:32 +02:00
|
|
|
common/node_id.o \
|
2019-06-03 20:11:25 +02:00
|
|
|
common/per_peer_state.o \
|
2020-10-08 23:40:25 +02:00
|
|
|
common/psbt_open.o \
|
2019-09-06 08:09:36 +02:00
|
|
|
common/pseudorand.o \
|
2020-12-02 01:10:04 +01:00
|
|
|
common/setup.o \
|
2017-11-22 01:26:08 +01:00
|
|
|
common/type_to_string.o \
|
|
|
|
common/utils.o \
|
2018-06-28 03:34:47 +02:00
|
|
|
common/version.o \
|
2019-01-08 01:21:50 +01:00
|
|
|
common/wireaddr.o \
|
2020-09-07 23:06:50 +02:00
|
|
|
wire/onion$(EXP)_wiregen.o \
|
2020-12-03 10:34:03 +01:00
|
|
|
wire/peer$(EXP)_wiregen.o \
|
2021-09-09 04:50:52 +02:00
|
|
|
wire/channel_type_wiregen.o \
|
2020-12-03 10:34:03 +01:00
|
|
|
wire/tlvstream.o
|
2017-11-22 01:26:08 +01:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/features: common/features.o common/utils.o wire/fromwire.o wire/towire.o devtools/features.o
|
2021-09-23 04:29:48 +02:00
|
|
|
|
2022-07-16 15:18:27 +02:00
|
|
|
devtools/rune: common/utils.o common/autodata.o common/setup.o common/version.o wire/fromwire.o wire/towire.o devtools/rune.o
|
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/fp16: common/fp16.o common/utils.o common/setup.o common/autodata.o devtools/fp16.o
|
2022-03-21 01:58:28 +01:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/bolt11-cli: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/bolt11-cli.o
|
2017-11-22 01:26:08 +01:00
|
|
|
|
2021-06-09 05:09:56 +02:00
|
|
|
devtools/encodeaddr: common/utils.o common/bech32.o devtools/encodeaddr.o
|
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/bolt12-cli: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/bolt12$(EXP)_wiregen.o wire/fromwire.o wire/towire.o common/bolt12.o common/bolt12_merkle.o devtools/bolt12-cli.o common/setup.o common/iso4217.o
|
2020-12-09 04:57:50 +01:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/decodemsg: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(BITCOIN_OBJS) $(WIRE_PRINT_OBJS) wire/fromwire.o wire/towire.o devtools/print_wire.o devtools/decodemsg.o
|
2018-02-01 01:08:37 +01:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/dump-gossipstore: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/dump-gossipstore.o gossipd/gossip_store_wiregen.o
|
2018-08-30 02:04:28 +02:00
|
|
|
|
2020-08-25 04:05:45 +02:00
|
|
|
devtools/dump-gossipstore.o: gossipd/gossip_store_wiregen.h
|
2019-04-08 01:51:30 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/create-gossipstore: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/create-gossipstore.o gossipd/gossip_store_wiregen.o
|
2020-08-25 04:05:45 +02:00
|
|
|
devtools/create-gossipstore.o: gossipd/gossip_store_wiregen.h
|
2019-04-08 01:51:30 +02:00
|
|
|
|
2018-03-08 21:08:04 +01:00
|
|
|
devtools/onion.c: ccan/config.h
|
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/onion: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(BITCOIN_OBJS) common/onion.o common/onionreply.o wire/fromwire.o wire/towire.o devtools/onion.o common/sphinx.o
|
2018-03-01 16:58:18 +01:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/gossipwith: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o wire/peer$(EXP)_wiregen.o devtools/gossipwith.o common/cryptomsg.o common/cryptomsg.o
|
2018-09-21 02:29:44 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
$(DEVTOOLS_OBJS) $(DEVTOOLS_TOOL_OBJS): wire/wire.h
|
2017-11-22 01:26:08 +01:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/mkcommit: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) common/derive_basepoints.o common/channel_type.o common/keyset.o common/key_derive.o common/initial_commit_tx.o common/permute_tx.o wire/fromwire.o wire/towire.o devtools/mkcommit.o channeld/full_channel.o common/initial_channel.o common/htlc_state.o common/pseudorand.o common/htlc_tx.o channeld/commit_tx.o common/htlc_trim.o
|
2018-09-21 02:29:44 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/mkfunding: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o common/key_derive.o devtools/mkfunding.o
|
2019-07-16 23:46:14 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/mkclose: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/mkclose.o
|
2019-08-21 05:52:46 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/mkgossip: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o common/utxo.o common/permute_tx.o common/key_derive.o devtools/mkgossip.o
|
2019-09-12 02:24:01 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/mkencoded: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/mkencoded.o
|
2019-09-12 02:24:01 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/checkchannels: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) common/configdir.o wire/fromwire.o wire/towire.o devtools/checkchannels.o
|
2019-09-11 01:31:23 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/mkquery: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/mkquery.o
|
2019-09-30 03:35:17 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/lightning-checkmessage: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/lightning-checkmessage.o
|
2019-10-12 07:12:50 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/route: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o wire/tlvstream.o common/gossmap.o common/fp16.o common/random_select.o common/route.o common/dijkstra.o devtools/clean_topo.o devtools/route.o
|
2020-08-26 02:40:49 +02:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
devtools/topology: $(DEVTOOLS_COMMON_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o wire/tlvstream.o common/gossmap.o common/fp16.o common/random_select.o common/dijkstra.o common/route.o devtools/clean_topo.o devtools/topology.o
|