1. $(JSMN_OBJS) is not set anywhere. 2. You don't need to depend on CCAN_HEADERS, COMMON_HEADERS or JSMN_HEADERS: the top level Makefile has all object depedning on it. 3. Similarly, CCAN_OBJS. 4. Every object file should be rebuilt if its Makefile changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
16 lines
440 B
Makefile
16 lines
440 B
Makefile
PLUGIN_XPAY_SRC := \
|
|
plugins/xpay/xpay.c
|
|
|
|
PLUGIN_XPAY_HDRS :=
|
|
|
|
PLUGIN_XPAY_OBJS := $(PLUGIN_XPAY_SRC:.c=.o)
|
|
|
|
# Make sure these depend on everything.
|
|
ALL_C_SOURCES += $(PLUGIN_XPAY_SRC)
|
|
ALL_C_HEADERS += $(PLUGIN_XPAY_HDRS)
|
|
|
|
# Make all plugins depend on all plugin headers, for simplicity (and this file)
|
|
$(PLUGIN_XPAY_OBJS): $(PLUGIN_XPAY_HDRS) plugins/xpay/Makefile
|
|
|
|
plugins/cln-xpay: $(PLUGIN_XPAY_OBJS) $(PLUGIN_LIB_OBJS) libcommon.a
|