mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES
This avoids overwriting the ones in git, and generally makes things neater. We have convenience headers wire/peer_wire.h and wire/onion_wire.h to avoid most #ifdefs: simply include those. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -41,8 +41,8 @@ DEVTOOLS_COMMON_OBJS := \
|
||||
common/utils.o \
|
||||
common/version.o \
|
||||
common/wireaddr.o \
|
||||
wire/onion_wiregen.o \
|
||||
wire/peer_wiregen.o
|
||||
wire/onion$(EXP)_wiregen.o \
|
||||
wire/peer$(EXP)_wiregen.o
|
||||
|
||||
devtools/bolt11-cli: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/bolt11-cli.o
|
||||
|
||||
@@ -61,7 +61,7 @@ devtools/onion: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) $(BITCOIN_OBJS
|
||||
|
||||
devtools/blindedpath: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) common/blinding.o $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o devtools/blindedpath.o common/onion.o common/onionreply.o common/sphinx.o
|
||||
|
||||
devtools/gossipwith: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o wire/peer_wiregen.o devtools/gossipwith.o common/cryptomsg.o common/cryptomsg.o common/crypto_sync.o
|
||||
devtools/gossipwith: $(DEVTOOLS_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) $(BITCOIN_OBJS) wire/fromwire.o wire/towire.o wire/peer$(EXP)_wiregen.o devtools/gossipwith.o common/cryptomsg.o common/cryptomsg.o common/crypto_sync.o
|
||||
|
||||
$(DEVTOOLS_OBJS) $(DEVTOOLS_TOOL_OBJS): wire/wire.h
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <wire/peer_wiregen.h>
|
||||
#include <wire/peer_wire.h>
|
||||
|
||||
|
||||
struct scidsat {
|
||||
|
||||
@@ -5,8 +5,13 @@
|
||||
#include <common/utils.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#if EXPERIMENTAL_FEATURES
|
||||
#include <wire/onion_exp_printgen.h>
|
||||
#include <wire/peer_exp_printgen.h>
|
||||
#else
|
||||
#include <wire/onion_printgen.h>
|
||||
#include <wire/peer_printgen.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <wire/peer_wiregen.h>
|
||||
#include <wire/peer_wire.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <common/type_to_string.h>
|
||||
#include <common/utils.h>
|
||||
#include <inttypes.h>
|
||||
#include <wire/peer_wiregen.h>
|
||||
#include <wire/peer_wire.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static bool verbose = false;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <common/gossip_constants.h>
|
||||
#include <common/utils.h>
|
||||
#include <inttypes.h>
|
||||
#include <wire/peer_wiregen.h>
|
||||
#include <wire/peer_wire.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static void usage(void)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
#include <bitcoin/preimage.h>
|
||||
#include <bitcoin/tx.h>
|
||||
#include <common/wireaddr.h>
|
||||
#include <wire/peer_wiregen.h>
|
||||
#include <wire/onion_wiregen.h>
|
||||
#include <wire/peer_wire.h>
|
||||
#include <wire/onion_wire.h>
|
||||
|
||||
struct tlv_print_record_type {
|
||||
u64 type;
|
||||
|
||||
Reference in New Issue
Block a user