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 \
|
2022-06-16 09:32:39 +02:00
|
|
|
connectd/gossip_rcvd_filter.h \
|
2022-01-08 14:19:29 +01:00
|
|
|
connectd/multiplex.h \
|
2018-07-24 08:18:58 +02:00
|
|
|
connectd/netaddress.h \
|
2022-01-29 04:32:32 +01:00
|
|
|
connectd/onion_message.h \
|
2018-07-24 08:18:58 +02:00
|
|
|
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
|
|
|
|
2021-10-15 07:49:05 +02:00
|
|
|
WEBSOCKETD_HEADERS := connectd/sha1.h
|
|
|
|
WEBSOCKETD_SRC := $(WEBSOCKETD_HEADERS:.h=.c) connectd/websocketd.c
|
|
|
|
|
|
|
|
WEBSOCKETD_OBJS := $(WEBSOCKETD_SRC:.c=.o)
|
|
|
|
$(WEBSOCKETD_OBJS): $(WEBSOCKETD_HEADERS)
|
|
|
|
|
2018-07-24 08:18:58 +02:00
|
|
|
# Make sure these depend on everything.
|
2021-10-15 07:49:05 +02:00
|
|
|
ALL_C_SOURCES += $(CONNECTD_SRC) $(WEBSOCKETD_SRC)
|
|
|
|
ALL_C_HEADERS += $(CONNECTD_HEADERS) $(WEBSOCKETD_HEADERS)
|
2018-07-24 08:18:58 +02:00
|
|
|
ALL_PROGRAMS += lightningd/lightning_connectd
|
2021-10-15 07:49:05 +02:00
|
|
|
ALL_PROGRAMS += lightningd/lightning_websocketd
|
2018-07-24 08:18:58 +02:00
|
|
|
|
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 \
|
2021-09-21 09:23:10 +02:00
|
|
|
common/autodata.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 \
|
2022-01-29 04:32:32 +01:00
|
|
|
common/blinding.o \
|
|
|
|
common/blindedpath.o \
|
2020-05-15 12:29:53 +02:00
|
|
|
common/channel_id.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
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 \
|
2022-01-29 04:32:32 +01:00
|
|
|
common/hmac.o \
|
2020-08-25 04:19:38 +02:00
|
|
|
common/status_wiregen.o \
|
2022-01-08 14:28:29 +01:00
|
|
|
common/gossip_store.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 \
|
2022-01-29 04:32:32 +01:00
|
|
|
common/onion.o \
|
2020-01-23 00:38:04 +01:00
|
|
|
common/onionreply.o \
|
2022-01-29 04:31:32 +01:00
|
|
|
common/ping.o \
|
2019-06-03 20:11:25 +02:00
|
|
|
common/per_peer_state.o \
|
2020-10-08 23:40:25 +02:00
|
|
|
common/psbt_open.o \
|
2018-07-24 08:18:58 +02:00
|
|
|
common/pseudorand.o \
|
2020-05-16 00:13:22 +02:00
|
|
|
common/setup.o \
|
2022-01-29 04:32:32 +01:00
|
|
|
common/sphinx.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 \
|
2022-01-08 14:28:29 +01:00
|
|
|
gossipd/gossip_store_wiregen.o \
|
2020-09-07 23:06:50 +02:00
|
|
|
wire/onion$(EXP)_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
|
|
|
|
2021-11-14 18:51:46 +01:00
|
|
|
lightningd/lightning_websocketd: $(WEBSOCKETD_OBJS) common/setup.o common/utils.o common/autodata.o
|
2021-10-15 07:49:05 +02:00
|
|
|
|
2020-08-31 03:13:25 +02:00
|
|
|
include connectd/test/Makefile
|