From 5aa1f37f07d6d1c3f6cee9ca0d7b85c133a2d313 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 7 Jun 2018 06:10:30 +0930 Subject: [PATCH] devtools/Makefile: add devtools/onion.c to DEVTOOLS_TOOL_SRC This way the object file correctly depends on external headers. Currently a parallel build on a clean tree can give: ``` In file included from ./common/sphinx.h:6:0, from devtools/onion.c:5: ./bitcoin/pubkey.h:8:10: fatal error: secp256k1.h: No such file or directory #include ^~~~~~~~~~~~~ compilation terminated. : recipe for target 'devtools/onion.o' failed ``` Signed-off-by: Rusty Russell --- devtools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/Makefile b/devtools/Makefile index 5241d4014..ee94335c6 100644 --- a/devtools/Makefile +++ b/devtools/Makefile @@ -1,6 +1,6 @@ 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_SRC := devtools/bolt11-cli.c devtools/decodemsg.c devtools/onion.c DEVTOOLS_TOOL_OBJS := $(DEVTOOLS_TOOL_SRC:.c=.o) DEVTOOLS_COMMON_OBJS := \