2018-07-24 08:18:58 +02:00
|
|
|
#! /usr/bin/make
|
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
CONNECTD_HEADERS := connectd/connectd_wiregen.h \
|
2020-08-25 04:16:22 +02:00
|
|
|
connectd/connectd_gossipd_wiregen.h \
|
2018-09-03 05:40:00 +02:00
|
|
|
connectd/connectd.h \
|
2018-09-27 23:04:19 +02:00
|
|
|
connectd/peer_exchange_initmsg.h \
|
2018-07-24 08:18:58 +02:00
|
|
|
connectd/handshake.h \
|
|
|
|
connectd/netaddress.h \
|
|
|
|
connectd/tor_autoservice.h \
|
|
|
|
connectd/tor.h
|
2020-08-31 03:13:25 +02:00
|
|
|
|
|
|
|
CONNECTD_SRC := $(CONNECTD_HEADERS:.h=.c) connectd/connectd.c
|
|
|
|
|
|
|
|
CONNECTD_OBJS := $(CONNECTD_SRC:.c=.o)
|
|
|
|
$(CONNECTD_OBJS): $(CONNECTD_HEADERS)
|
2018-07-24 08:18:58 +02:00
|
|
|
|
|
|
|
# Make sure these depend on everything.
|
2020-08-31 03:13:25 +02:00
|
|
|
ALL_C_SOURCES += $(CONNECTD_SRC)
|
|
|
|
ALL_C_HEADERS += $(CONNECTD_HEADERS)
|
2018-07-24 08:18:58 +02:00
|
|
|
ALL_PROGRAMS += lightningd/lightning_connectd
|
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
# Here's what lightningd depends on
|
|
|
|
LIGHTNINGD_CONTROL_HEADERS += connectd/connectd_wiregen.h
|
|
|
|
LIGHTNINGD_CONTROL_OBJS += connectd/connectd_wiregen.o
|
2018-07-24 08:18:58 +02:00
|
|
|
|
|
|
|
# Common source we use.
|
|
|
|
CONNECTD_COMMON_OBJS := \
|
2019-02-20 12:31:48 +01:00
|
|
|
common/amount.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/base32.o \
|
2019-11-15 09:44:22 +01:00
|
|
|
common/base64.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/bech32.o \
|
|
|
|
common/bech32_util.o \
|
2019-07-30 07:25:12 +02:00
|
|
|
common/bigsize.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/bip32.o \
|
2020-05-15 12:29:53 +02:00
|
|
|
common/channel_id.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/crypto_state.o \
|
|
|
|
common/cryptomsg.o \
|
|
|
|
common/daemon.o \
|
|
|
|
common/daemon_conn.o \
|
|
|
|
common/derive_basepoints.o \
|
|
|
|
common/dev_disconnect.o \
|
2020-04-03 05:21:22 +02:00
|
|
|
common/ecdh_hsmd.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/features.o \
|
2020-08-25 04:19:38 +02:00
|
|
|
common/status_wiregen.o \
|
2019-09-06 08:09:36 +02:00
|
|
|
common/gossip_rcvd_filter.o \
|
2018-12-03 00:02:11 +01:00
|
|
|
common/key_derive.o \
|
2018-11-21 22:45:37 +01:00
|
|
|
common/memleak.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/msg_queue.o \
|
2019-04-08 11:58:32 +02:00
|
|
|
common/node_id.o \
|
2020-01-23 00:38:04 +01:00
|
|
|
common/onionreply.o \
|
2019-06-03 20:11:25 +02:00
|
|
|
common/per_peer_state.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/pseudorand.o \
|
2020-05-16 00:13:22 +02:00
|
|
|
common/setup.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/status.o \
|
|
|
|
common/status_wire.o \
|
|
|
|
common/subdaemon.o \
|
|
|
|
common/timeout.o \
|
|
|
|
common/type_to_string.o \
|
|
|
|
common/utils.o \
|
|
|
|
common/utxo.o \
|
|
|
|
common/version.o \
|
|
|
|
common/wireaddr.o \
|
|
|
|
common/wire_error.o \
|
2020-08-25 04:05:45 +02:00
|
|
|
gossipd/gossipd_wiregen.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
lightningd/gossip_msg.o \
|
2020-08-31 03:13:25 +02:00
|
|
|
wire/onion_wiregen.o
|
2018-07-24 08:18:58 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
lightningd/lightning_connectd: $(CONNECTD_OBJS) $(CONNECTD_COMMON_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(HSMD_CLIENT_OBJS)
|
2018-07-24 08:18:58 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
include connectd/test/Makefile
|