cln/devtools
Rusty Russell e120f87083 Makefile: create a library containing common, wire and bitcoin objects.
This means we don't have to manually choose what to link against,
which is much of the complexity of our Makefiles: the compiler will
automatically use any object files it needs to link.

We already do this for ccan as libccan.a, now we have libcommon.a.

We don't link against it for *everything*, as some tests require their own
versions.

Notes:
1. I get rid of the weird plugins/test/Makefile2 (accidental commit?)
2. Many tests change due to update-mocks.
3. In some places I added the missing dependency on the Makefile itself, though most are in the next
   patch.

Before:
	Total program size:     221366528
	Total tests size:       364243856

After:
	Total program size:     190733656
	Total tests size:       337880888

Build time from make clean (RUST=0) (includes building external libs):

Before:
	real    0m38.227000-44.245000(41.8222+/-1.6)s
	user    3m2.105000-33.696000(23.1442+/-8.4)s
	sys     0m35.054000-42.269000(39.7231+/-2)s
After:
	real    0m38.944000-40.416000(40.1131+/-0.4)s
	user    3m6.790000-17.159000(15.0571+/-2.8)s
	sys     0m35.304000-37.336000(36.8942+/-0.57)s

Build time after touch config.vars (RUST=0):

Before:
	real    0m18.928000-22.776000(21.5084+/-1.1)s
	user    2m8.613000-36.567000(27.7281+/-7.7)s
	sys     0m20.458000-23.436000(22.3963+/-0.77)s

After:
	real    0m19.831000-21.862000(21.5528+/-0.58)s
	user    2m15.361000-30.731000(28.4798+/-4.4)s
	sys     0m21.056000-22.339000(22.0346+/-0.35)s

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

rusty@rusty-Framework:~/devel/cvs/lightni
2025-10-23 06:44:04 +10:30
..
.gitignore add devtool/bip137-verifysignature utility 2025-05-13 13:19:03 +09:30
bip137-verifysignature.c add devtool/bip137-verifysignature utility 2025-05-13 13:19:03 +09:30
blockreplace.py tools: Add yml mode to blockreplace.py 2023-03-25 15:40:35 +10:30
bolt-catchup.sh devtools/bolt-catchup.sh: a tool to update the specs, one commit at a time. 2022-09-12 09:34:52 +09:30
bolt11-cli.c devtools: allow encode with 9 flag (for features). 2025-02-14 22:17:21 +10:30
bolt12-cli.c common: fix bolt12 quotes to bring them up-to-date. 2025-10-01 15:31:30 +09:30
changelog.py devtools: Fixed changlog.py default commit range 2024-08-13 08:32:23 -07:00
checkchannels.c global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
clean_topo.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
clean_topo.h devtools/topology: new tool to explore lightning topology. 2020-08-28 10:56:50 +09:30
convert-gossmap.c devtools: create conversion tool for old gossip stores. 2025-10-01 13:29:33 +09:30
create-gossipstore.c gossip: add COMPLETED bit to mark records which are complete. 2025-10-01 13:29:33 +09:30
credit devtools/credit: add aliases of previous namers 2025-07-08 12:56:17 +09:30
decode-iolog devtools/decode-iolog: tool to decode hexstrings from io logging. 2019-05-31 18:36:38 +02:00
decodemsg.c devtools: call common_setup in main 2023-06-05 16:16:21 +02:00
dump-gossipstore.c gossip_store: wait for completed bit on reading. 2025-10-01 13:29:33 +09:30
encodeaddr.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
features.c devtools/features: tool to convert feature bitmap to names. 2021-09-23 15:02:05 +02:00
fp16.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
gossipwith.c gossipwith: add flag to insist that we receive all messages. 2025-08-14 17:35:39 +09:30
gossmap-compress.c gossmap: add (and use) logging hook. 2025-02-11 15:11:47 -06:00
lightning-checkmessage.c global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
Makefile Makefile: create a library containing common, wire and bitcoin objects. 2025-10-23 06:44:04 +10:30
mkclose.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
mkcommit.c channeld: Add dynamic funding_pubkeys to channel_txs 2024-11-21 14:15:36 +10:30
mkencoded.c gossipd: drop zlib support. 2024-07-10 12:21:19 +09:30
mkfunding.c common/utxo: use a real type for the UTXO, not a boolean is_p2sh. 2025-05-06 12:27:53 +09:30
mkgossip.c bitcoin/short_channel_id: pass by copy everywhere. 2024-03-20 13:51:48 +10:30
mkquery.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
onion.c avoid UB when calling ctype functions 2025-08-18 14:03:20 +09:30
print_wire.c common: add sciddir_or_pubkey type. 2024-05-12 19:11:43 -05:00
print_wire.h common: add sciddir_or_pubkey type. 2024-05-12 19:11:43 -05:00
reduce-includes.sh check: fix warnings from shellcheck 0.8.0 2022-11-09 15:08:03 +01:00
route.c gossmap: add (and use) logging hook. 2025-02-11 15:11:47 -06:00
rune.c devtools/rune: simple decode tool. 2022-07-17 08:51:02 +09:30
sql-rewrite.py db: Backfill missing HTLC IDs in the forwards table 2022-11-28 14:47:43 +01:00
taldump-analyze.py devtools/taldump-analyze.py: script to analyze tal_dump() output. 2021-11-27 10:38:13 +10:30
topology.c gossmap: add (and use) logging hook. 2025-02-11 15:11:47 -06:00
unused-functions.sh devtools: simple script to look for functions which don't seem to be used. 2021-12-06 10:05:39 +10:30