2017-08-29 05:12:04 +01:00
|
|
|
#! /usr/bin/make
|
|
|
|
|
2020-08-31 02:13:25 +01:00
|
|
|
HSMD_SRC := hsmd/hsmd.c \
|
|
|
|
hsmd/hsmd_wiregen.c
|
|
|
|
HSMD_HEADERS := hsmd/hsmd_wiregen.h
|
|
|
|
HSMD_OBJS := $(HSMD_SRC:.c=.o)
|
2017-08-29 05:12:04 +01:00
|
|
|
|
2020-08-31 02:13:25 +01:00
|
|
|
$(HSMD_OBJS): $(HSMD_HEADERS)
|
2017-08-29 05:12:04 +01:00
|
|
|
|
2020-08-31 02:13:25 +01:00
|
|
|
# Other programs which use the hsm need this.
|
|
|
|
HSMD_CLIENT_OBJS := hsmd/hsmd_wiregen.o
|
|
|
|
|
|
|
|
# Make sure these depend on everything.
|
|
|
|
ALL_C_SOURCES += $(HSMD_SRC)
|
|
|
|
ALL_C_HEADERS += $(HSMD_HEADERS)
|
|
|
|
ALL_PROGRAMS += lightningd/lightning_hsmd
|
2017-08-29 05:12:04 +01:00
|
|
|
|
|
|
|
# Common source we use.
|
|
|
|
HSMD_COMMON_OBJS := \
|
2019-02-20 11:31:48 +00:00
|
|
|
common/amount.o \
|
2019-07-30 06:25:12 +01:00
|
|
|
common/bigsize.o \
|
2017-08-29 05:12:04 +01:00
|
|
|
common/bip32.o \
|
2020-05-15 11:29:53 +01:00
|
|
|
common/channel_id.o \
|
2018-03-29 03:06:45 +01:00
|
|
|
common/daemon.o \
|
2017-08-29 05:12:04 +01:00
|
|
|
common/daemon_conn.o \
|
2018-01-02 15:34:08 +00:00
|
|
|
common/derive_basepoints.o \
|
2020-08-25 03:19:38 +01:00
|
|
|
common/status_wiregen.o \
|
2017-10-26 04:03:19 +01:00
|
|
|
common/hash_u5.o \
|
2017-08-29 05:12:04 +01:00
|
|
|
common/key_derive.o \
|
2018-11-21 21:45:37 +00:00
|
|
|
common/memleak.o \
|
2017-08-29 05:12:04 +01:00
|
|
|
common/msg_queue.o \
|
2019-04-08 10:58:32 +01:00
|
|
|
common/node_id.o \
|
2017-08-29 05:12:04 +01:00
|
|
|
common/permute_tx.o \
|
2020-05-15 23:13:22 +01:00
|
|
|
common/setup.o \
|
2017-08-29 05:12:04 +01:00
|
|
|
common/status.o \
|
2018-02-08 01:25:12 +00:00
|
|
|
common/status_wire.o \
|
2018-01-08 10:01:09 +00:00
|
|
|
common/subdaemon.o \
|
2017-10-22 14:32:46 +01:00
|
|
|
common/type_to_string.o \
|
2017-08-29 05:12:04 +01:00
|
|
|
common/utils.o \
|
|
|
|
common/utxo.o \
|
2020-08-28 04:56:32 +01:00
|
|
|
common/version.o
|
2017-08-29 05:12:04 +01:00
|
|
|
|
2020-09-09 11:10:29 +01:00
|
|
|
ifeq ($(EXPERIMENTAL_FEATURES),1)
|
|
|
|
HSMD_COMMON_OBJS += common/psbt_open.o
|
|
|
|
endif
|
2017-08-29 05:12:04 +01:00
|
|
|
|
2020-08-31 02:13:25 +01:00
|
|
|
lightningd/lightning_hsmd: $(HSMD_OBJS) $(HSMD_COMMON_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS)
|
2017-08-29 05:12:04 +01:00
|
|
|
|
2017-11-30 16:07:38 +00:00
|
|
|
-include hsmd/test/Makefile
|