core-lightning/devtools
Rusty Russell 3e672b784d Makefile: use a library archive for CCAN
The linker discards whole files in an archive if it doesn't need them,
so saves a bit of space (and time).  Also allows us to add more niche
things to CCAN (e.g. runes support!) without bloating all the binaries.

We also had many places which depended on $(CCAN_FILES), but that was
already a dependent of $(ALL_PROGRAMS) and $(ALL_TEST_PROGRAMS).

Before:

```
$ size lightningd/lightning*d
   text	   data	    bss	    dec	    hex	filename
2247683	   8696	  39008	2295387	 23065b	lightningd/lightning_channeld
2086607	   7432	  38880	2132919	 208bb7	lightningd/lightning_closingd
2227916	   8056	  39200	2275172	 22b764	lightningd/lightning_connectd
3369236	 119288	  39240	3527764	 35d454	lightningd/lightningd
2183551	   8352	  38880	2230783	 2209ff	lightningd/lightning_dualopend
2196389	   8024	  39136	2243549	 223bdd	lightningd/lightning_gossipd
2086216	   7488	  39264	2132968	 208be8	lightningd/lightning_hsmd
2134396	   8136	  39424	2181956	 214b44	lightningd/lightning_onchaind
2133391	   8352	  38880	2180623	 21460f	lightningd/lightning_openingd
1512168	   2136	  34384	1548688	 17a190	lightningd/lightning_websocketd
```

After:
```
text	   data	    bss	    dec	    hex	filename
2192065	   8488	  38912	2239465	 222be9	lightningd/lightning_channeld
2030957	   7224	  38816	2076997	 1fb145	lightningd/lightning_closingd
2179571	   7968	  39104	2226643	 21f9d3	lightningd/lightning_connectd
3354296	 119288	  39208	3512792	 3599d8	lightningd/lightningd
2127933	   8144	  38816	2174893	 212fad	lightningd/lightning_dualopend
2141699	   7856	  39072	2188627	 216553	lightningd/lightning_gossipd
2024482	   7288	   5240	2037010	 1f1512	lightningd/lightning_hsmd
2072074	   7920	   5400	2085394	 1fd212	lightningd/lightning_onchaind
2077773	   8144	  38816	2124733	 206bbd	lightningd/lightning_openingd
1408958	   1752	    344	1411054	 1587ee	lightningd/lightning_websocketd
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-07-17 08:51:02 +09:30
..
.gitignore ignore generic binary 2022-05-09 04:04:25 +00:00
bolt11-cli.c bolt11: support payment_metadata. 2022-04-02 09:40:18 +10:30
bolt12-cli.c json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
changelog.py devtools: add experimental section. 2021-04-07 14:34:39 +09:30
checkchannels.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09: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
create-gossipstore.c tools/generate_wire.py: make functions allocate the TLV. 2022-03-25 13:55:44 +10:30
credit tools: Pretty print the credits 2021-01-26 15:45:13 +01:00
decode-iolog devtools/decode-iolog: tool to decode hexstrings from io logging. 2019-05-31 18:36:38 +02:00
decodemsg.c devtools/decodemsg: add --list-tlvs 2022-03-25 13:55:44 +10:30
dump-gossipstore.c devtools: add --print-timestamps to dump-gossipstore. 2022-07-15 21:18:29 +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 devtools/fp16: conversion tool for fp16 format. 2022-03-22 18:45:41 +10:30
gossipwith.c devtools: revert changes and make sure chainparams always set. 2022-06-28 06:09:01 +09:30
lightning-checkmessage.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
Makefile Makefile: use a library archive for CCAN 2022-07-17 08:51:02 +09:30
mkclose.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
mkcommit.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
mkencoded.c Makefile: update to BOLTs without zlib. 2022-05-19 09:47:32 +09:30
mkfunding.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
mkgossip.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
mkquery.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
onion.c common: clean up json routine locations. 2022-07-15 12:24:00 -05:00
print_wire.c Makefile: update to BOLTs without zlib. 2022-05-19 09:47:32 +09:30
print_wire.h wire: generate printwire_ routines for bolt12 CSV. 2022-03-25 13:55:44 +10:30
reduce-includes.sh devtools/reduce-includes.sh: brute-force script to remove includes. 2021-09-17 09:43:22 +09:30
route.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
sql-rewrite.py db: collapse the db_queries files into the generated ones 2022-03-05 15:03:34 +10:30
taldump-analyze.py devtools/taldump-analyze.py: script to analyze tal_dump() output. 2021-11-27 10:38:13 +10:30
topology.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
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