2017-08-28 18:04:01 +02:00
|
|
|
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 \
|
2018-03-26 02:08:47 +02:00
|
|
|
common/json_escaped.o \
|
2018-04-25 12:55:34 +02:00
|
|
|
common/utils.o \
|
2017-08-28 18:04:01 +02:00
|
|
|
common/version.o
|
|
|
|
|
|
|
|
lightning-cli-all: cli/lightning-cli
|
|
|
|
|
2017-08-28 18:11:01 +02:00
|
|
|
$(LIGHTNINGD_OPENING_OBJS): $(LIGHTNINGD_HEADERS) $(EXTERNAL_HEADERS)
|
2017-08-28 18:04:01 +02:00
|
|
|
|
|
|
|
$(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)
|
|
|
|
|
2017-08-28 18:13:01 +02:00
|
|
|
# Make sure these depend on everything.
|
|
|
|
ALL_PROGRAMS += cli/lightning-cli
|
|
|
|
ALL_OBJS += $(LIGHTNING_CLI_OBJS)
|
|
|
|
|
2017-08-28 18:05:01 +02:00
|
|
|
check-source: $(LIGHTNING_CLI_SRC:%=check-src-include-order/%)
|
|
|
|
|
2017-08-28 18:04:01 +02:00
|
|
|
clean: lightning-cli-clean
|
|
|
|
|
|
|
|
lightning-cli-clean:
|
|
|
|
$(RM) $(LIGHTNING-CLI_LIB_OBJS) $(DAEMON_JSMN_OBJS)
|
|
|
|
|
2018-01-20 05:37:31 +01:00
|
|
|
include cli/test/Makefile
|