-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile.patch
35 lines (29 loc) · 1.27 KB
/
Makefile.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/plugins/Makefile b/plugins/Makefile
index f9ec59a40..d4a56369c 100644
--- a/plugins/Makefile
+++ b/plugins/Makefile
@@ -30,7 +30,10 @@ PLUGIN_OFFERS_HEADER := $(PLUGIN_OFFERS_SRC:.c=.h)
PLUGIN_FETCHINVOICE_SRC := plugins/fetchinvoice.c
PLUGIN_FETCHINVOICE_OBJS := $(PLUGIN_FETCHINVOICE_SRC:.c=.o)
-PLUGIN_FETCHINVOICE_HEADER :=
+PLUGIN_FETCHINVOICE_HEADER :=
+
+PLUGIN_ESPLORA_SRC := plugins/esplora.c
+PLUGIN_ESPLORA_OBJS := $(PLUGIN_ESPLORA_SRC:.c=.o)
PLUGIN_SPENDER_SRC := \
plugins/spender/fundchannel.c \
@@ -85,7 +88,8 @@ PLUGINS := \
plugins/offers \
plugins/pay \
plugins/txprepare \
- plugins/spenderp
+ plugins/spenderp \
+ plugins/esplora
# Make sure these depend on everything.
ALL_C_SOURCES += $(PLUGIN_ALL_SRC)
@@ -163,6 +167,8 @@ plugins/fetchinvoice: bitcoin/chainparams.o $(PLUGIN_FETCHINVOICE_OBJS) $(PLUGIN
plugins/funder: bitcoin/chainparams.o bitcoin/psbt.o common/psbt_open.o $(PLUGIN_FUNDER_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)
+plugins/esplora: bitcoin/chainparams.o $(PLUGIN_ESPLORA_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) -lcurl -lssl -lcrypto
+
$(PLUGIN_ALL_OBJS): $(PLUGIN_LIB_HEADER)
# Generated from PLUGINS definition in plugins/Makefile