mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
8b1aa3ef8b
lightning-cli is going to need to know what network we're on, so it will need to parse the config files. Move the code which does the initial bootstrap parsing into common, as well as the config file parsing core. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
32 lines
852 B
Makefile
32 lines
852 B
Makefile
LIGHTNING_CLI_SRC := cli/lightning-cli.c
|
|
LIGHTNING_CLI_OBJS := $(LIGHTNING_CLI_SRC:.c=.o)
|
|
|
|
LIGHTNING_CLI_COMMON_OBJS := \
|
|
bitcoin/chainparams.o \
|
|
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
|