2017-02-21 15:15:29 +10:30
|
|
|
#! /usr/bin/make
|
|
|
|
|
2020-09-09 16:50:53 +09:30
|
|
|
OPENINGD_HEADERS := \
|
|
|
|
openingd/common.h \
|
|
|
|
openingd/openingd_wiregen.h
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-09-09 19:40:25 +09:30
|
|
|
DUALOPEND_HEADERS := \
|
|
|
|
openingd/common.h \
|
|
|
|
openingd/dualopend_wiregen.h
|
|
|
|
|
|
|
|
OPENINGD_SRC := openingd/openingd.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
$(OPENINGD_HEADERS:.h=.c)
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-09-09 19:40:25 +09:30
|
|
|
DUALOPEND_SRC := openingd/dualopend.c \
|
|
|
|
$(DUALOPEND_HEADERS:.h=.c)
|
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
OPENINGD_OBJS := $(OPENINGD_SRC:.c=.o)
|
|
|
|
$(OPENINGD_OBJS): $(OPENINGD_HEADERS)
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-09-09 19:40:25 +09:30
|
|
|
DUALOPEND_OBJS := $(DUALOPEND_SRC:.c=.o)
|
|
|
|
$(DUALOPEND_OBJS): $(DUALOPEND_HEADERS)
|
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
# Make sure these depend on everything.
|
2020-09-09 19:40:25 +09:30
|
|
|
ALL_C_SOURCES += $(OPENINGD_SRC) $(DUALOPEND_SRC)
|
|
|
|
ALL_C_HEADERS += $(OPENINGD_HEADERS) $(DUALOPEND_HEADERS)
|
2021-03-11 18:19:40 -06:00
|
|
|
ALL_PROGRAMS += lightningd/lightning_openingd lightningd/lightning_dualopend
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
# Here's what lightningd depends on
|
2020-09-09 19:40:25 +09:30
|
|
|
LIGHTNINGD_CONTROL_HEADERS += openingd/openingd_wiregen.h openingd/dualopend_wiregen.h
|
|
|
|
LIGHTNINGD_CONTROL_OBJS += openingd/openingd_wiregen.o openingd/dualopend_wiregen.o
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2017-08-29 01:32:01 +09:30
|
|
|
# Common source we use.
|
|
|
|
OPENINGD_COMMON_OBJS := \
|
2019-02-20 22:01:48 +10:30
|
|
|
common/amount.o \
|
2018-05-10 08:48:19 +09:30
|
|
|
common/base32.o \
|
2019-07-30 14:55:12 +09:30
|
|
|
common/bigsize.o \
|
2020-11-24 16:25:56 -06:00
|
|
|
common/billboard.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/bip32.o \
|
|
|
|
common/channel_config.o \
|
2020-05-15 19:59:53 +09:30
|
|
|
common/channel_id.o \
|
2017-10-11 20:26:50 +10:30
|
|
|
common/crypto_state.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/crypto_sync.o \
|
|
|
|
common/cryptomsg.o \
|
2018-03-29 12:36:45 +10:30
|
|
|
common/daemon.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/daemon_conn.o \
|
2017-08-29 01:32:01 +09:30
|
|
|
common/derive_basepoints.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/dev_disconnect.o \
|
2019-05-01 08:28:09 +09:30
|
|
|
common/features.o \
|
2019-12-13 00:34:53 +10:30
|
|
|
common/fee_states.o \
|
2020-08-25 11:49:38 +09:30
|
|
|
common/status_wiregen.o \
|
|
|
|
common/peer_status_wiregen.o \
|
2019-09-06 15:39:36 +09:30
|
|
|
common/gossip_rcvd_filter.o \
|
2019-05-06 11:30:06 +09:30
|
|
|
common/gossip_store.o \
|
2019-12-13 00:34:53 +10:30
|
|
|
common/htlc_state.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/htlc_wire.o \
|
2017-08-29 01:32:01 +09:30
|
|
|
common/initial_channel.o \
|
|
|
|
common/initial_commit_tx.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/key_derive.o \
|
|
|
|
common/keyset.o \
|
2017-12-15 20:52:57 +10:30
|
|
|
common/memleak.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/msg_queue.o \
|
2020-05-16 10:59:05 +09:30
|
|
|
common/node_id.o \
|
2020-01-23 10:08:04 +10:30
|
|
|
common/onionreply.o \
|
2020-05-07 10:13:42 +09:30
|
|
|
common/penalty_base.o \
|
2019-06-04 03:41:25 +09:30
|
|
|
common/per_peer_state.o \
|
2018-02-23 16:23:47 +10:30
|
|
|
common/peer_billboard.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/peer_failed.o \
|
2017-08-29 01:32:01 +09:30
|
|
|
common/permute_tx.o \
|
2021-03-11 18:19:40 -06:00
|
|
|
common/psbt_internal.o \
|
2020-10-08 16:40:25 -05:00
|
|
|
common/psbt_open.o \
|
2017-08-29 01:34:01 +09:30
|
|
|
common/pseudorand.o \
|
2018-01-31 13:23:42 +10:30
|
|
|
common/read_peer_msg.o \
|
2020-05-15 17:13:22 -05:00
|
|
|
common/setup.o \
|
2021-02-19 14:52:02 +10:30
|
|
|
common/shutdown_scriptpubkey.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/status.o \
|
2018-02-08 11:55:12 +10:30
|
|
|
common/status_wire.o \
|
2018-01-08 20:31:09 +10:30
|
|
|
common/subdaemon.o \
|
2017-08-29 01:32:01 +09:30
|
|
|
common/type_to_string.o \
|
|
|
|
common/utils.o \
|
2017-08-29 01:35:01 +09:30
|
|
|
common/utxo.o \
|
2017-12-06 13:52:35 +10:30
|
|
|
common/version.o \
|
2018-04-26 14:21:01 +09:30
|
|
|
common/wire_error.o \
|
|
|
|
common/wireaddr.o \
|
2021-05-22 16:39:53 +09:30
|
|
|
gossipd/gossip_store_wiregen.o \
|
|
|
|
gossipd/gossipd_peerd_wiregen.o
|
2017-08-29 01:32:01 +09:30
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/lightning_openingd: $(OPENINGD_OBJS) $(OPENINGD_COMMON_OBJS) $(WIRE_OBJS) $(BITCOIN_OBJS) $(HSMD_CLIENT_OBJS)
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-09-09 19:40:25 +09:30
|
|
|
lightningd/lightning_dualopend: $(DUALOPEND_OBJS) $(OPENINGD_COMMON_OBJS) $(WIRE_OBJS) $(BITCOIN_OBJS) $(HSMD_CLIENT_OBJS)
|
|
|
|
|
2017-12-10 13:41:10 +01:00
|
|
|
-include openingd/test/Makefile
|