mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-06 05:49:30 +01:00
8238fe6acf
My test case is a mainnet gossip store with 22107 channels, and time to do `lightning-cli listchannels`: Before: `lightning-cli listchannels` DEVELOPER=0 real 0m1.396000-1.409000(1.4022+/-0.005)s After: real 0m1.307000-1.320000(1.3128+/-0.005)s Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
31 lines
825 B
Makefile
31 lines
825 B
Makefile
LIGHTNING_CLI_SRC := cli/lightning-cli.c
|
|
LIGHTNING_CLI_OBJS := $(LIGHTNING_CLI_SRC:.c=.o)
|
|
|
|
LIGHTNING_CLI_COMMON_OBJS := \
|
|
common/configdir.o \
|
|
common/json.o \
|
|
common/memleak.o \
|
|
common/utils.o \
|
|
common/version.o
|
|
|
|
lightning-cli-all: cli/lightning-cli
|
|
|
|
$(LIGHTNINGD_OPENING_OBJS): $(LIGHTNINGD_HEADERS) $(EXTERNAL_HEADERS)
|
|
|
|
$(LIGHTNING_CLI_OBJS) $(JSMN_OBJS): $(JSMN_HEADERS) $(COMMON_HEADERS) $(CCAN_HEADERS)
|
|
|
|
cli/lightning-cli: $(LIGHTNING_CLI_OBJS) $(LIGHTNING_CLI_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)
|
|
|
|
# Make sure these depend on everything.
|
|
ALL_PROGRAMS += cli/lightning-cli
|
|
ALL_OBJS += $(LIGHTNING_CLI_OBJS)
|
|
|
|
check-source: $(LIGHTNING_CLI_SRC:%=check-src-include-order/%)
|
|
|
|
clean: lightning-cli-clean
|
|
|
|
lightning-cli-clean:
|
|
$(RM) $(LIGHTNING-CLI_LIB_OBJS) $(DAEMON_JSMN_OBJS)
|
|
|
|
include cli/test/Makefile
|