2017-03-07 02:26:12 +01:00
|
|
|
#! /usr/bin/make
|
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
CHANNELD_HEADERS := \
|
2020-10-22 01:51:08 +02:00
|
|
|
channeld/full_channel_error_names_gen.h \
|
2020-08-31 03:13:25 +02:00
|
|
|
channeld/channeld_wiregen.h \
|
2017-08-29 06:12:04 +02:00
|
|
|
channeld/channeld_htlc.h \
|
2022-01-29 04:33:05 +01:00
|
|
|
channeld/channeld.h \
|
2017-08-29 06:12:04 +02:00
|
|
|
channeld/commit_tx.h \
|
2018-02-19 02:06:14 +01:00
|
|
|
channeld/full_channel.h \
|
2020-05-07 02:51:43 +02:00
|
|
|
channeld/full_channel_error.h \
|
|
|
|
channeld/watchtower.h
|
2017-03-07 02:26:12 +01:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
CHANNELD_SRC := channeld/channeld.c \
|
2017-08-29 06:12:04 +02:00
|
|
|
channeld/commit_tx.c \
|
2020-05-07 02:51:43 +02:00
|
|
|
channeld/full_channel.c \
|
2020-08-25 03:33:16 +02:00
|
|
|
channeld/channeld_wiregen.c \
|
2020-05-07 02:51:43 +02:00
|
|
|
channeld/watchtower.c
|
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
CHANNELD_OBJS := $(CHANNELD_SRC:.c=.o)
|
|
|
|
$(CHANNELD_OBJS): $(CHANNELD_HEADERS)
|
2017-03-07 02:26:12 +01:00
|
|
|
|
2017-08-28 18:13:01 +02:00
|
|
|
# Make sure these depend on everything.
|
2020-08-31 03:13:25 +02:00
|
|
|
ALL_C_SOURCES += $(CHANNELD_SRC)
|
|
|
|
ALL_C_HEADERS += $(CHANNELD_HEADERS)
|
2017-08-29 06:12:04 +02:00
|
|
|
ALL_PROGRAMS += lightningd/lightning_channeld
|
2020-08-31 03:13:25 +02:00
|
|
|
|
|
|
|
# Here's what lightningd depends on
|
|
|
|
LIGHTNINGD_CONTROL_HEADERS += channeld/channeld_wiregen.h
|
|
|
|
LIGHTNINGD_CONTROL_OBJS += channeld/channeld_wiregen.o
|
2017-08-28 18:13:01 +02:00
|
|
|
|
2017-08-28 18:02:01 +02:00
|
|
|
# Common source we use.
|
|
|
|
CHANNELD_COMMON_OBJS := \
|
2019-02-20 12:31:48 +01:00
|
|
|
common/amount.o \
|
2021-09-21 09:23:10 +02:00
|
|
|
common/autodata.o \
|
2018-05-10 01:18:19 +02:00
|
|
|
common/base32.o \
|
2019-07-30 07:25:03 +02:00
|
|
|
common/bigsize.o \
|
2020-11-24 23:06:54 +01:00
|
|
|
common/billboard.o \
|
2019-02-20 12:31:48 +01:00
|
|
|
common/bip32.o \
|
2020-04-03 05:16:56 +02:00
|
|
|
common/blinding.o \
|
2021-06-22 20:25:59 +02:00
|
|
|
common/blockheight_states.o \
|
2017-08-28 18:05:01 +02:00
|
|
|
common/channel_config.o \
|
2020-05-15 12:29:53 +02:00
|
|
|
common/channel_id.o \
|
2021-09-09 04:50:52 +02:00
|
|
|
common/channel_type.o \
|
2017-08-28 18:05:01 +02:00
|
|
|
common/cryptomsg.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-04-03 05:21:22 +02:00
|
|
|
common/ecdh_hsmd.o \
|
2018-12-10 02:03:42 +01:00
|
|
|
common/features.o \
|
2019-12-12 15:04:53 +01:00
|
|
|
common/fee_states.o \
|
2022-01-08 14:23:29 +01:00
|
|
|
common/peer_io.o \
|
|
|
|
common/peer_status_wiregen.o \
|
|
|
|
common/status_wiregen.o \
|
2019-05-06 04:00:06 +02:00
|
|
|
common/gossip_store.o \
|
2020-03-20 02:29:24 +01:00
|
|
|
common/hmac.o \
|
2017-08-28 18:04:01 +02:00
|
|
|
common/htlc_state.o \
|
2019-05-31 09:30:32 +02:00
|
|
|
common/htlc_trim.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 \
|
2017-08-28 18:02:01 +02:00
|
|
|
common/initial_channel.o \
|
|
|
|
common/initial_commit_tx.o \
|
2017-08-28 18:05:01 +02:00
|
|
|
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 \
|
2019-04-08 11:58:32 +02:00
|
|
|
common/node_id.o \
|
2019-12-05 11:06:28 +01:00
|
|
|
common/onion.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:05:01 +02:00
|
|
|
common/peer_failed.o \
|
2020-05-07 02:49:32 +02:00
|
|
|
common/penalty_base.o \
|
2019-06-03 20:11:25 +02:00
|
|
|
common/per_peer_state.o \
|
2017-08-28 18:02:01 +02:00
|
|
|
common/permute_tx.o \
|
2018-08-09 04:53:17 +02:00
|
|
|
common/ping.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 \
|
2020-10-20 05:59:30 +02:00
|
|
|
common/private_channel_announcement.o \
|
2017-08-28 18:04:01 +02:00
|
|
|
common/pseudorand.o \
|
2018-01-31 03:53:42 +01:00
|
|
|
common/read_peer_msg.o \
|
2020-05-16 00:13:22 +02:00
|
|
|
common/setup.o \
|
2017-08-28 18:05:01 +02:00
|
|
|
common/sphinx.o \
|
|
|
|
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:04:01 +02:00
|
|
|
common/timeout.o \
|
2017-08-28 18:02:01 +02:00
|
|
|
common/type_to_string.o \
|
|
|
|
common/utils.o \
|
2017-12-02 13:00:29 +01:00
|
|
|
common/utxo.o \
|
2017-11-29 04:17:35 +01:00
|
|
|
common/version.o \
|
2017-12-19 01:02:28 +01:00
|
|
|
common/wire_error.o \
|
2017-11-29 04:17:35 +01:00
|
|
|
common/wireaddr.o \
|
2020-08-25 04:05:45 +02:00
|
|
|
gossipd/gossipd_peerd_wiregen.o \
|
2020-10-20 05:59:30 +02:00
|
|
|
gossipd/gossip_store_wiregen.o \
|
2017-11-29 04:17:35 +01:00
|
|
|
wire/fromwire.o \
|
|
|
|
wire/towire.o
|
2017-08-28 18:02:01 +02:00
|
|
|
|
2020-10-22 01:51:08 +02:00
|
|
|
channeld/full_channel_error_names_gen.h: channeld/full_channel_error.h ccan/ccan/cdump/tools/cdump-enumstr
|
2018-02-19 02:06:14 +01:00
|
|
|
ccan/ccan/cdump/tools/cdump-enumstr channeld/full_channel_error.h > $@
|
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
lightningd/lightning_channeld: $(CHANNELD_OBJS) $(WIRE_ONION_OBJS) $(CHANNELD_COMMON_OBJS) $(WIRE_OBJS) $(BITCOIN_OBJS) $(HSMD_CLIENT_OBJS)
|
2018-02-19 02:06:14 +01:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
include channeld/test/Makefile
|