Browse Source

wire: Linking against wire objs

ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
e40509c6c3
  1. 5
      Makefile
  2. 4
      daemon/Makefile
  3. 4
      wire/Makefile

5
Makefile

@ -44,6 +44,7 @@ CORE_SRC := \
protobuf_convert.c \ protobuf_convert.c \
utils.c \ utils.c \
version.c version.c
CORE_OBJS := $(CORE_SRC:.c=.o) CORE_OBJS := $(CORE_SRC:.c=.o)
CCAN_OBJS := \ CCAN_OBJS := \
@ -254,7 +255,7 @@ secp256k1/libsecp256k1.la:
lightning.pb-c.c lightning.pb-c.h: lightning.proto 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 @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 ccan/config.h: ccan/tools/configurator/configurator
if $< > $@.new; then mv $@.new $@; else rm $@.new; exit 1; fi if $< > $@.new; then mv $@.new $@; else rm $@.new; exit 1; fi
@ -317,7 +318,7 @@ maintainer-clean: distclean
$(RM) doc/deployable-lightning.pdf $(RM) doc/deployable-lightning.pdf
$(RM) $(MANPAGES) $(RM) $(MANPAGES)
clean: daemon-clean clean: daemon-clean wire-clean
$(MAKE) -C secp256k1/ clean || true $(MAKE) -C secp256k1/ clean || true
$(RM) libsecp256k1.{a,la} $(RM) libsecp256k1.{a,la}
$(RM) $(PROGRAMS) $(RM) $(PROGRAMS)

4
daemon/Makefile

@ -130,9 +130,9 @@ daemon/jsmn/jsmn.c: daemon/jsmn/jsmn.h
daemon/jsmn.o: daemon/jsmn/jsmn.c daemon/jsmn.o: daemon/jsmn/jsmn.c
$(COMPILE.c) -DJSMN_STRICT=1 $(OUTPUT_OPTION) $< $(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: daemon-clean:
$(RM) $(DAEMON_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_CLI_OBJS) $(DAEMON_JSMN_OBJS) $(DAEMON_GEN_HEADERS) $(RM) $(DAEMON_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_CLI_OBJS) $(DAEMON_JSMN_OBJS) $(DAEMON_GEN_HEADERS)

4
wire/Makefile

@ -27,7 +27,9 @@ wire/gen_wire.o: wire/gen_wire.h
clean: wire-clean clean: wire-clean
wire-all: wire/gen_wire.o wire/fromwire.o wire/towire.o
wire-clean: 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 include wire/test/Makefile

Loading…
Cancel
Save