mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
fff7dd0826
$ ./devtools/decodemsg 00110000000000000000000000000000000000000000000000000000000000000000000e496e7465726e616c206572726f72 WIRE_ERROR: channel_id=0000000000000000000000000000000000000000000000000000000000000000 data=[Internal error] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
40 lines
1.5 KiB
Makefile
40 lines
1.5 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/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/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_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
|
|
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)
|
|
|