rgb-cln/tools
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
..
gen tools/gen: Always return bool! 2022-07-14 12:24:48 -05:00
test tools/generate_wire.py: make functions allocate the TLV. 2022-03-25 13:55:44 +10:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
Makefile Makefile: use a library archive for CCAN 2022-07-17 08:51:02 +09:30
bench-gossipd.sh gossipd: remove unnecessary dev_unknown_channel_satoshis arg. 2019-05-22 11:28:44 +00:00
build-release.sh v0.11.0.1: final fixes for release build 2022-04-25 20:49:44 +09:30
check-bolt.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
check-includes.sh tools/check-includes.sh: make shellcheck happy. 2021-12-06 10:05:39 +10:30
check-manpage.sh tools: add a tool to formatting schema, and fixed (hack) the Makefile code checking. 2021-11-28 10:55:48 +10:30
check-markdown.sh tools: use /usr/bin/env bash instead of /bin/bash 2018-07-24 00:25:43 +00:00
check-setup_locale.sh setup: add setup to make checks 2020-05-19 13:35:42 +09:30
check-spelling.sh misc: Make the spell checker just a tiny bit less trigger happy 2022-03-08 05:00:36 +10:30
docker-entrypoint.sh docker: Update name from c-lightning to Core-Lightning 2022-05-14 11:43:46 +09:30
fromschema.py doc: Add documentation for new RPCs and a FIXME: in fromschema.py 2022-07-14 12:24:48 -05:00
generate-wire.py common: Add scb_wire for serializing the static_chan_backup 2022-07-14 12:24:48 -05:00
headerversions.c db: Ensure sqlite3 library minimum version and major version match 2021-10-12 09:15:48 +10:30
hsmtool.c cli: make the command line more user friendly. 2022-03-24 09:53:38 +10:30
mockup.sh update-mocks: handle missing deprecated_apis. 2022-07-09 09:59:52 +09:30
refresh-submodules.sh make: have `git submodule update` be recursive 2020-12-11 13:20:54 +01:00
rel.sh tools: use /usr/bin/env bash instead of /bin/bash 2018-07-24 00:25:43 +00:00
repro-build.sh repro: Add reprobuild support for ubuntu:22.04 2022-04-28 12:28:48 +09:30
update-mocks.sh update-mocks: prefer to find function defs from local includes. 2021-05-22 17:53:04 +09:30