2017-08-23 03:52:17 +02:00
|
|
|
#! /usr/bin/make
|
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
ONCHAIND_HEADERS := \
|
2020-08-25 04:15:48 +02:00
|
|
|
onchaind/onchaind_wiregen.h \
|
2020-10-22 01:51:08 +02:00
|
|
|
onchaind/onchain_types_names_gen.h \
|
2017-08-29 06:12:04 +02:00
|
|
|
onchaind/onchain_types.h \
|
2020-08-25 04:15:48 +02:00
|
|
|
onchaind/onchaind_wire.h
|
2017-08-23 03:52:17 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
ONCHAIND_SRC := onchaind/onchaind.c \
|
|
|
|
onchaind/onchaind_wiregen.c \
|
|
|
|
onchaind/onchaind_wire.c \
|
|
|
|
onchaind/onchaind.c
|
2017-08-23 03:52:17 +02:00
|
|
|
|
2020-10-22 01:51:08 +02:00
|
|
|
onchaind/onchain_types_names_gen.h: onchaind/onchain_types.h ccan/ccan/cdump/tools/cdump-enumstr
|
2020-08-31 03:13:25 +02:00
|
|
|
ccan/ccan/cdump/tools/cdump-enumstr onchaind/onchain_types.h > $@
|
2017-08-23 03:52:17 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
ONCHAIND_OBJS := $(ONCHAIND_SRC:.c=.o)
|
|
|
|
$(ONCHAIND_OBJS): $(ONCHAIND_HEADERS)
|
2017-08-23 03:52:17 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
# Make sure these depend on everything.
|
|
|
|
ALL_C_SOURCES += $(ONCHAIND_SRC)
|
|
|
|
ALL_C_HEADERS += $(ONCHAIND_HEADERS)
|
|
|
|
ALL_PROGRAMS += lightningd/lightning_onchaind
|
2017-08-23 03:52:17 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
# Here's what lightningd depends on
|
|
|
|
LIGHTNINGD_CONTROL_HEADERS += \
|
|
|
|
onchaind/onchaind_wiregen.h \
|
|
|
|
onchaind/onchaind_wire.h
|
|
|
|
LIGHTNINGD_CONTROL_OBJS += \
|
|
|
|
onchaind/onchaind_wiregen.o \
|
|
|
|
onchaind/onchaind_wire.o
|
2017-08-23 03:52:17 +02:00
|
|
|
|
2017-08-28 18:02:01 +02:00
|
|
|
# Common source we use.
|
|
|
|
ONCHAIND_COMMON_OBJS := \
|
2019-02-20 12:31:48 +01:00
|
|
|
common/amount.o \
|
2021-09-21 09:23:10 +02:00
|
|
|
common/autodata.o \
|
2021-10-12 13:16:37 +02:00
|
|
|
common/base32.o \
|
2019-07-30 07:25:12 +02:00
|
|
|
common/bigsize.o \
|
2018-07-23 04:23:02 +02:00
|
|
|
common/bip32.o \
|
2020-04-02 04:16:32 +02:00
|
|
|
common/coin_mvt.o \
|
2020-05-15 12:29:53 +02:00
|
|
|
common/channel_id.o \
|
2018-03-29 04:06:45 +02:00
|
|
|
common/daemon.o \
|
2017-08-28 18:05:01 +02:00
|
|
|
common/daemon_conn.o \
|
2017-08-28 18:02:01 +02:00
|
|
|
common/derive_basepoints.o \
|
2020-08-25 04:19:38 +02:00
|
|
|
common/status_wiregen.o \
|
2017-08-28 18:02:01 +02:00
|
|
|
common/htlc_tx.o \
|
2017-08-28 18:05:01 +02:00
|
|
|
common/htlc_wire.o \
|
|
|
|
common/initial_commit_tx.o \
|
|
|
|
common/keyset.o \
|
|
|
|
common/key_derive.o \
|
2017-12-15 11:22:57 +01:00
|
|
|
common/memleak.o \
|
2017-08-28 18:05:01 +02:00
|
|
|
common/msg_queue.o \
|
2020-05-16 03:29:05 +02:00
|
|
|
common/node_id.o \
|
2020-01-23 00:38:04 +01:00
|
|
|
common/onionreply.o \
|
2018-02-23 06:53:47 +01:00
|
|
|
common/peer_billboard.o \
|
2017-08-28 18:02:01 +02:00
|
|
|
common/permute_tx.o \
|
2021-12-23 21:16:35 +01:00
|
|
|
common/psbt_keypath.o \
|
2020-10-08 23:40:25 +02:00
|
|
|
common/psbt_open.o \
|
|
|
|
common/pseudorand.o \
|
2020-05-16 00:13:22 +02:00
|
|
|
common/setup.o \
|
2017-08-28 18:05:01 +02:00
|
|
|
common/status.o \
|
2018-02-08 02:25:12 +01:00
|
|
|
common/status_wire.o \
|
2018-01-08 11:01:09 +01:00
|
|
|
common/subdaemon.o \
|
2017-08-28 18:02:01 +02:00
|
|
|
common/type_to_string.o \
|
|
|
|
common/utils.o \
|
2018-07-23 04:23:02 +02:00
|
|
|
common/utxo.o \
|
2018-09-20 05:06:42 +02:00
|
|
|
common/version.o \
|
2021-10-12 13:16:37 +02:00
|
|
|
common/wallet.o \
|
|
|
|
common/wireaddr.o
|
2017-08-28 18:02:01 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
lightningd/lightning_onchaind: $(ONCHAIND_OBJS) $(WIRE_ONION_OBJS) $(ONCHAIND_COMMON_OBJS) $(WIRE_OBJS) $(BITCOIN_OBJS) $(HSMD_CLIENT_OBJS)
|
2017-08-23 03:52:17 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
include onchaind/test/Makefile
|