2017-02-21 15:15:29 +10:30
|
|
|
#! /usr/bin/make
|
|
|
|
|
|
2020-09-09 16:50:53 +09:30
|
|
|
OPENINGD_HEADERS := \
|
|
|
|
|
openingd/common.h \
|
|
|
|
|
openingd/openingd_wiregen.h
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-09-09 19:40:25 +09:30
|
|
|
DUALOPEND_HEADERS := \
|
|
|
|
|
openingd/common.h \
|
|
|
|
|
openingd/dualopend_wiregen.h
|
|
|
|
|
|
|
|
|
|
OPENINGD_SRC := openingd/openingd.c \
|
2020-08-31 10:43:25 +09:30
|
|
|
$(OPENINGD_HEADERS:.h=.c)
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-09-09 19:40:25 +09:30
|
|
|
DUALOPEND_SRC := openingd/dualopend.c \
|
|
|
|
|
$(DUALOPEND_HEADERS:.h=.c)
|
|
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
OPENINGD_OBJS := $(OPENINGD_SRC:.c=.o)
|
|
|
|
|
$(OPENINGD_OBJS): $(OPENINGD_HEADERS)
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-09-09 19:40:25 +09:30
|
|
|
DUALOPEND_OBJS := $(DUALOPEND_SRC:.c=.o)
|
|
|
|
|
$(DUALOPEND_OBJS): $(DUALOPEND_HEADERS)
|
|
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
# Make sure these depend on everything.
|
2020-09-09 19:40:25 +09:30
|
|
|
ALL_C_SOURCES += $(OPENINGD_SRC) $(DUALOPEND_SRC)
|
|
|
|
|
ALL_C_HEADERS += $(OPENINGD_HEADERS) $(DUALOPEND_HEADERS)
|
2021-03-11 18:19:40 -06:00
|
|
|
ALL_PROGRAMS += lightningd/lightning_openingd lightningd/lightning_dualopend
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2020-08-31 10:43:25 +09:30
|
|
|
# Here's what lightningd depends on
|
2020-09-09 19:40:25 +09:30
|
|
|
LIGHTNINGD_CONTROL_HEADERS += openingd/openingd_wiregen.h openingd/dualopend_wiregen.h
|
|
|
|
|
LIGHTNINGD_CONTROL_OBJS += openingd/openingd_wiregen.o openingd/dualopend_wiregen.o
|
2017-02-21 15:15:29 +10:30
|
|
|
|
2025-10-22 19:44:26 +10:30
|
|
|
lightningd/lightning_openingd: $(OPENINGD_OBJS) $(HSMD_CLIENT_OBJS) libcommon.a
|
2017-08-29 01:32:01 +09:30
|
|
|
|
2025-10-22 19:44:26 +10:30
|
|
|
lightningd/lightning_dualopend: $(DUALOPEND_OBJS) $(HSMD_CLIENT_OBJS) libcommon.a
|
2020-09-09 19:40:25 +09:30
|
|
|
|
2017-12-10 13:41:10 +01:00
|
|
|
-include openingd/test/Makefile
|