mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
c635396766
These were so far only used for bolt11 construction, but we'll need them for the DNS seed as well, so here we just pull them out into their own unit and prefix them. Signed-off-by: Christian Decker <decker.christian@gmail.com>
44 lines
1.7 KiB
Makefile
44 lines
1.7 KiB
Makefile
DEVTOOLS_SRC := devtools/gen_print_wire.c devtools/print_wire.c
|
|
DEVTOOLS_OBJS := $(DEVTOOLS_SRC:.c=.o)
|
|
DEVTOOLS_TOOL_SRC := devtools/bolt11-cli.c devtools/decodemsg.c
|
|
DEVTOOLS_TOOL_OBJS := $(DEVTOOLS_TOOL_SRC:.c=.o)
|
|
|
|
DEVTOOLS_COMMON_OBJS := \
|
|
common/bech32.o \
|
|
common/bech32_util.o \
|
|
common/bolt11.o \
|
|
common/hash_u5.o \
|
|
common/type_to_string.o \
|
|
common/utils.o \
|
|
common/version.o
|
|
|
|
devtools-all: devtools/bolt11-cli devtools/decodemsg devtools/onion
|
|
|
|
devtools/gen_print_wire.h: $(WIRE_GEN) wire/gen_peer_wire_csv
|
|
$(WIRE_GEN) --bolt --printwire --header $@ wire_type < wire/gen_peer_wire_csv > $@
|
|
|
|
devtools/gen_print_wire.c: $(WIRE_GEN) wire/gen_peer_wire_csv
|
|
$(WIRE_GEN) --bolt --printwire ${@:.c=.h} wire_type < wire/gen_peer_wire_csv > $@
|
|
|
|
devtools/bolt11-cli: $(DEVTOOLS_OBJS) $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/bolt11-cli.o
|
|
|
|
devtools/decodemsg: $(DEVTOOLS_OBJS) $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/decodemsg.o
|
|
|
|
devtools/onion.c: ccan/config.h
|
|
|
|
devtools/onion: $(DEVTOOLS_OBJS) $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/onion.o common/sphinx.o
|
|
|
|
$(DEVTOOLS_OBJS) $(DEVTOOLS_TOOL_OBJS): wire/wire.h devtools/gen_print_wire.h
|
|
devtools/gen_print_wire.o: devtools/gen_print_wire.h wire/gen_peer_wire.h
|
|
|
|
# Make sure these depend on everything.
|
|
ALL_PROGRAMS += devtools/bolt11-cli devtools/decodemsg devtools/onion
|
|
ALL_OBJS += $(DEVTOOLS_OBJS) $(DEVTOOLS_TOOL_OBJS)
|
|
|
|
check-source: $(DEVTOOLS_SRC:%=check-src-include-order/%) $(DEVTOOLS_TOOLS_SRC:%=check-src-include-order/%)
|
|
|
|
clean: devtools-clean
|
|
|
|
devtools-clean:
|
|
$(RM) $(DEVTOOLS_CLI_OBJS)
|