mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
wire: Linking against wire objs
This commit is contained in:
parent
36e018161f
commit
e40509c6c3
5
Makefile
5
Makefile
@ -44,6 +44,7 @@ CORE_SRC := \
|
||||
protobuf_convert.c \
|
||||
utils.c \
|
||||
version.c
|
||||
|
||||
CORE_OBJS := $(CORE_SRC:.c=.o)
|
||||
|
||||
CCAN_OBJS := \
|
||||
@ -254,7 +255,7 @@ secp256k1/libsecp256k1.la:
|
||||
lightning.pb-c.c lightning.pb-c.h: lightning.proto
|
||||
@if $(CHANGED_FROM_GIT); then echo $(PROTOCC) lightning.proto --c_out=.; $(PROTOCC) lightning.proto --c_out=.; else touch $@; fi
|
||||
|
||||
$(TEST_PROGRAMS): % : %.o $(BITCOIN_OBJS) $(CCAN_OBJS) utils.o version.o libsecp256k1.a
|
||||
$(TEST_PROGRAMS): % : %.o $(BITCOIN_OBJS) $(WIRE_OBJS) $(CCAN_OBJS) utils.o version.o libsecp256k1.a
|
||||
|
||||
ccan/config.h: ccan/tools/configurator/configurator
|
||||
if $< > $@.new; then mv $@.new $@; else rm $@.new; exit 1; fi
|
||||
@ -317,7 +318,7 @@ maintainer-clean: distclean
|
||||
$(RM) doc/deployable-lightning.pdf
|
||||
$(RM) $(MANPAGES)
|
||||
|
||||
clean: daemon-clean
|
||||
clean: daemon-clean wire-clean
|
||||
$(MAKE) -C secp256k1/ clean || true
|
||||
$(RM) libsecp256k1.{a,la}
|
||||
$(RM) $(PROGRAMS)
|
||||
|
@ -130,9 +130,9 @@ daemon/jsmn/jsmn.c: daemon/jsmn/jsmn.h
|
||||
daemon/jsmn.o: daemon/jsmn/jsmn.c
|
||||
$(COMPILE.c) -DJSMN_STRICT=1 $(OUTPUT_OPTION) $<
|
||||
|
||||
daemon/lightningd: $(DAEMON_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_JSMN_OBJS) $(CORE_OBJS) $(BITCOIN_OBJS) $(CCAN_OBJS) libsecp256k1.a
|
||||
daemon/lightningd: $(DAEMON_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_JSMN_OBJS) $(CORE_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(CCAN_OBJS) libsecp256k1.a
|
||||
|
||||
daemon/lightning-cli: $(DAEMON_CLI_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_JSMN_OBJS) $(CORE_OBJS) $(BITCOIN_OBJS) $(CCAN_OBJS) libsecp256k1.a
|
||||
daemon/lightning-cli: $(DAEMON_CLI_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_JSMN_OBJS) $(CORE_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(CCAN_OBJS) libsecp256k1.a
|
||||
|
||||
daemon-clean:
|
||||
$(RM) $(DAEMON_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_CLI_OBJS) $(DAEMON_JSMN_OBJS) $(DAEMON_GEN_HEADERS)
|
||||
|
@ -27,7 +27,9 @@ wire/gen_wire.o: wire/gen_wire.h
|
||||
|
||||
clean: wire-clean
|
||||
|
||||
wire-all: wire/gen_wire.o wire/fromwire.o wire/towire.o
|
||||
|
||||
wire-clean:
|
||||
$(RM) $(WIRE_OBJS) $(WIRE_GEN_SRC) $(WIRE_GEN_HEADERS)
|
||||
$(RM) $(WIRE_OBJS) $(WIRE_GEN_SRC) $(WIRE_GEN_HEADERS) towire.c fromwire.c
|
||||
|
||||
include wire/test/Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user