2017-01-10 15:37:51 +10:30
|
|
|
#! /usr/bin/make
|
|
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
LIGHTNINGD_SRC := \
|
2023-06-26 08:38:21 +09:30
|
|
|
lightningd/anchorspend.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/bitcoind.c \
|
|
|
|
|
lightningd/chaintopology.c \
|
|
|
|
|
lightningd/channel.c \
|
|
|
|
|
lightningd/channel_control.c \
|
2024-01-31 13:46:17 +10:30
|
|
|
lightningd/channel_gossip.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/closing_control.c \
|
|
|
|
|
lightningd/coin_mvts.c \
|
2021-03-11 18:19:40 -06:00
|
|
|
lightningd/dual_open_control.c \
|
2023-03-20 10:51:50 +10:30
|
|
|
lightningd/closed_channel.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/connect_control.c \
|
|
|
|
|
lightningd/onion_message.c \
|
2022-07-04 13:22:34 +09:30
|
|
|
lightningd/feerate.c \
|
2023-10-28 13:40:56 +10:30
|
|
|
lightningd/forwards.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/gossip_control.c \
|
2024-01-31 13:46:17 +10:30
|
|
|
lightningd/gossip_generation.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/hsm_control.c \
|
|
|
|
|
lightningd/htlc_end.c \
|
|
|
|
|
lightningd/htlc_set.c \
|
|
|
|
|
lightningd/invoice.c \
|
|
|
|
|
lightningd/io_loop_with_timers.c \
|
|
|
|
|
lightningd/jsonrpc.c \
|
|
|
|
|
lightningd/lightningd.c \
|
|
|
|
|
lightningd/log.c \
|
|
|
|
|
lightningd/log_status.c \
|
|
|
|
|
lightningd/memdump.c \
|
|
|
|
|
lightningd/notification.c \
|
|
|
|
|
lightningd/onchain_control.c \
|
2020-09-09 16:50:53 +09:30
|
|
|
lightningd/opening_common.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/opening_control.c \
|
|
|
|
|
lightningd/options.c \
|
|
|
|
|
lightningd/pay.c \
|
|
|
|
|
lightningd/peer_control.c \
|
2022-01-11 11:43:59 +10:30
|
|
|
lightningd/peer_fd.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/peer_htlcs.c \
|
2025-08-14 14:34:25 +09:30
|
|
|
lightningd/ping.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/plugin.c \
|
|
|
|
|
lightningd/plugin_control.c \
|
|
|
|
|
lightningd/plugin_hook.c \
|
2020-09-08 14:27:53 +09:30
|
|
|
lightningd/routehint.c \
|
2023-07-21 09:53:26 +09:30
|
|
|
lightningd/runes.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/subd.c \
|
2023-07-22 13:56:36 +09:30
|
|
|
lightningd/wait.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/watch.c
|
2017-01-10 15:37:51 +10:30
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
LIGHTNINGD_SRC_NOHDR := \
|
2023-06-05 23:47:21 +09:30
|
|
|
lightningd/configs.c \
|
2021-08-25 12:20:12 +09:30
|
|
|
lightningd/datastore.c \
|
2021-01-13 19:28:38 +10:30
|
|
|
lightningd/offer.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
lightningd/signmessage.c
|
2017-07-05 15:03:40 +09:30
|
|
|
|
2021-12-16 13:07:33 -06:00
|
|
|
include wallet/Makefile
|
|
|
|
|
|
|
|
|
|
LIGHTNINGD_HDRS := \
|
2020-08-31 10:43:25 +09:30
|
|
|
$(LIGHTNINGD_SRC:.c=.h) \
|
|
|
|
|
lightningd/channel_state.h \
|
2021-12-16 13:07:33 -06:00
|
|
|
lightningd/channel_state_names_gen.h \
|
|
|
|
|
$(WALLET_HDRS)
|
2017-08-29 01:41:01 +09:30
|
|
|
|
2020-11-23 19:44:02 -06:00
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
LIGHTNINGD_OBJS := $(LIGHTNINGD_SRC:.c=.o) $(LIGHTNINGD_SRC_NOHDR:.c=.o)
|
2021-12-16 13:07:33 -06:00
|
|
|
$(LIGHTNINGD_OBJS): $(LIGHTNINGD_HDRS) $(LIGHTNINGD_CONTROL_HEADERS)
|
2017-01-10 15:37:51 +10:30
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
# Make sure these depend on everything.
|
2020-10-22 22:55:27 +09:00
|
|
|
ALL_C_SOURCES += $(LIGHTNINGD_SRC) $(LIGHTNINGD_SRC_NOHDR)
|
2021-12-16 13:07:33 -06:00
|
|
|
ALL_C_HEADERS += $(LIGHTNINGD_HDRS)
|
2020-08-31 10:43:25 +09:30
|
|
|
ALL_PROGRAMS += lightningd/lightningd
|
2017-01-10 15:37:51 +10:30
|
|
|
|
2024-07-02 11:32:11 +09:30
|
|
|
# We explicitly check header versions in lightningd.c
|
|
|
|
|
lightningd/lightningd.o: header_versions_gen.h
|
|
|
|
|
|
2021-12-16 13:07:33 -06:00
|
|
|
$(LIGHTNINGD_OBJS): $(LIGHTNINGD_HDRS)
|
2022-01-03 12:45:35 -06:00
|
|
|
$(WALLET_OBJS): $(LIGHTNINGD_HDRS) $(DB_HEADERS)
|
2017-01-12 14:15:30 +01:00
|
|
|
|
2020-07-30 14:04:59 +08:00
|
|
|
# Only the plugin component needs to depend on this header.
|
2020-10-22 10:21:08 +10:30
|
|
|
lightningd/plugin.o: plugins/list_of_builtin_plugins_gen.h
|
2020-07-30 14:04:59 +08:00
|
|
|
|
2020-10-22 10:21:08 +10:30
|
|
|
lightningd/channel_state_names_gen.h: lightningd/channel_state.h ccan/ccan/cdump/tools/cdump-enumstr
|
2018-02-19 11:36:14 +10:30
|
|
|
ccan/ccan/cdump/tools/cdump-enumstr lightningd/channel_state.h > $@
|
2017-05-22 20:54:59 +09:30
|
|
|
|
2025-10-22 19:44:26 +10:30
|
|
|
lightningd/lightningd: $(LIGHTNINGD_OBJS) $(WALLET_OBJS) $(LIGHTNINGD_CONTROL_OBJS) $(HSMD_CLIENT_OBJS) $(DB_OBJS) libcommon.a
|
2017-01-10 15:37:51 +10:30
|
|
|
|
2017-01-10 15:38:33 +10:30
|
|
|
include lightningd/test/Makefile
|