@ -73,7 +73,6 @@ CCAN_OBJS := \
ccan-crypto-hkdf.o \
ccan-crypto-hkdf.o \
ccan-crypto-ripemd160.o \
ccan-crypto-ripemd160.o \
ccan-crypto-sha256.o \
ccan-crypto-sha256.o \
ccan-crypto-shachain.o \
ccan-crypto-siphash24.o \
ccan-crypto-siphash24.o \
ccan-err.o \
ccan-err.o \
ccan-fdpass.o \
ccan-fdpass.o \
@ -104,6 +103,8 @@ CCAN_OBJS := \
ccan-time.o \
ccan-time.o \
ccan-timer.o
ccan-timer.o
CCAN_SHACHAIN48_OBJ := ccan-crypto-shachain-48.o
CCAN_HEADERS := \
CCAN_HEADERS := \
$( CCANDIR) /config.h \
$( CCANDIR) /config.h \
$( CCANDIR) /ccan/alignof/alignof.h \
$( CCANDIR) /ccan/alignof/alignof.h \
@ -209,7 +210,7 @@ PROGRAMS := $(TEST_PROGRAMS)
CWARNFLAGS := -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition
CWARNFLAGS := -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition
CDEBUGFLAGS := -g -fstack-protector
CDEBUGFLAGS := -g -fstack-protector
CFLAGS := $( CWARNFLAGS) $( CDEBUGFLAGS) -I $( CCANDIR) -I libwally-core/src/secp256k1/include/ -I libwally-core/include/ -I libsodium/src/libsodium/include/ -I . $( FEATURES) $( COVFLAGS)
CFLAGS := $( CWARNFLAGS) $( CDEBUGFLAGS) -I $( CCANDIR) -I libwally-core/src/secp256k1/include/ -I libwally-core/include/ -I libsodium/src/libsodium/include/ -I . $( FEATURES) $( COVFLAGS) -DSHACHAIN_BITS= 48
LDLIBS := -lprotobuf-c -lgmp -lsqlite3 $( COVFLAGS)
LDLIBS := -lprotobuf-c -lgmp -lsqlite3 $( COVFLAGS)
$(PROGRAMS) : CFLAGS +=-I .
$(PROGRAMS) : CFLAGS +=-I .
@ -225,7 +226,7 @@ include lightningd/Makefile
CHANGED_FROM_GIT = [ x" `git log $@ | head -n1` " != x" `git log $< | head -n1` " -o x" `git diff $<` " != x"" ]
CHANGED_FROM_GIT = [ x" `git log $@ | head -n1` " != x" `git log $< | head -n1` " -o x" `git diff $<` " != x"" ]
# Everything depends on the CCAN headers.
# Everything depends on the CCAN headers.
$(CCAN_OBJS) $(CDUMP_OBJS) $(HELPER_OBJS) $(BITCOIN_OBJS) $(TEST_PROGRAMS : =.o ) ccan /ccan /cdump /tools /cdump -enumstr .o : $( CCAN_HEADERS )
$(CCAN_OBJS) $(CCAN_SHACHAIN48_OBJ) $(C DUMP_OBJS) $(HELPER_OBJS) $(BITCOIN_OBJS) $(TEST_PROGRAMS : =.o ) ccan /ccan /cdump /tools /cdump -enumstr .o : $( CCAN_HEADERS )
# Except for CCAN, everything depends on bitcoin/ and core headers.
# Except for CCAN, everything depends on bitcoin/ and core headers.
$(HELPER_OBJS) $(CORE_OBJS) $(CORE_TX_OBJS) $(CORE_PROTOBUF_OBJS) $(BITCOIN_OBJS) $(LIBBASE58_OBJS) $(WIRE_OBJS) $(TEST_PROGRAMS : =.o ): $( BITCOIN_HEADERS ) $( CORE_HEADERS ) $( CCAN_HEADERS ) $( GEN_HEADERS ) $( LIBBASE 58_HEADERS ) $( LIBSODIUM_HEADERS ) $( LIBWALLY_HEADERS )
$(HELPER_OBJS) $(CORE_OBJS) $(CORE_TX_OBJS) $(CORE_PROTOBUF_OBJS) $(BITCOIN_OBJS) $(LIBBASE58_OBJS) $(WIRE_OBJS) $(TEST_PROGRAMS : =.o ): $( BITCOIN_HEADERS ) $( CORE_HEADERS ) $( CCAN_HEADERS ) $( GEN_HEADERS ) $( LIBBASE 58_HEADERS ) $( LIBSODIUM_HEADERS ) $( LIBWALLY_HEADERS )
@ -435,8 +436,8 @@ ccan-crypto-hmac.o: $(CCANDIR)/ccan/crypto/hmac_sha256/hmac_sha256.c
$( CC) $( CFLAGS) -c -o $@ $<
$( CC) $( CFLAGS) -c -o $@ $<
ccan-crypto-hkdf.o : $( CCANDIR ) /ccan /crypto /hkdf_sha 256/hkdf_sha 256.c
ccan-crypto-hkdf.o : $( CCANDIR ) /ccan /crypto /hkdf_sha 256/hkdf_sha 256.c
$( CC) $( CFLAGS) -c -o $@ $<
$( CC) $( CFLAGS) -c -o $@ $<
ccan-crypto-shachain.o : $( CCANDIR ) /ccan /crypto /shachain /shachain .c
ccan-crypto-shachain-48 .o : $( CCANDIR ) /ccan /crypto /shachain /shachain .c
$( CC) $( CFLAGS) -c -o $@ $<
$( CC) $( CFLAGS) -DSHACHAIN_BITS= 48 - c -o $@ $<
ccan-crypto-sha256.o : $( CCANDIR ) /ccan /crypto /sha 256/sha 256.c
ccan-crypto-sha256.o : $( CCANDIR ) /ccan /crypto /sha 256/sha 256.c
$( CC) $( CFLAGS) -c -o $@ $<
$( CC) $( CFLAGS) -c -o $@ $<
ccan-crypto-ripemd160.o : $( CCANDIR ) /ccan /crypto /ripemd 160/ripemd 160.c
ccan-crypto-ripemd160.o : $( CCANDIR ) /ccan /crypto /ripemd 160/ripemd 160.c