mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
1746406e41
We create ALL_PROGRAMS, ALL_TEST_PROGRAMS, ALL_C_SOURCES and ALL_C_HEADERS. Then the toplevel Makefile knows which are autogenerated (by wildcard), so it can have all the rules to clean them or check the source as necessary. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
21 lines
548 B
Makefile
21 lines
548 B
Makefile
LIGHTNING_CLI_SRC := cli/lightning-cli.c
|
|
LIGHTNING_CLI_OBJS := $(LIGHTNING_CLI_SRC:.c=.o)
|
|
|
|
ALL_C_SOURCES += $(LIGHTNING_CLI_SRC)
|
|
ALL_C_HEADERS +=
|
|
ALL_PROGRAMS += cli/lightning-cli
|
|
|
|
LIGHTNING_CLI_COMMON_OBJS := \
|
|
bitcoin/chainparams.o \
|
|
common/configdir.o \
|
|
common/json.o \
|
|
common/json_stream.o \
|
|
common/utils.o \
|
|
common/version.o
|
|
|
|
$(LIGHTNING_CLI_OBJS): $(JSMN_HEADERS) $(COMMON_HEADERS) $(CCAN_HEADERS)
|
|
|
|
cli/lightning-cli: $(LIGHTNING_CLI_OBJS) $(LIGHTNING_CLI_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)
|
|
|
|
include cli/test/Makefile
|