2016-04-11 09:12:53 +02:00
|
|
|
# Included for one dir up.
|
|
|
|
|
2017-08-28 18:13:01 +02:00
|
|
|
BITCOIN_SRC := \
|
|
|
|
bitcoin/base58.c \
|
|
|
|
bitcoin/block.c \
|
|
|
|
bitcoin/chainparams.c \
|
|
|
|
bitcoin/locktime.c \
|
2018-08-17 06:16:34 +02:00
|
|
|
bitcoin/privkey.c \
|
2017-08-28 18:13:01 +02:00
|
|
|
bitcoin/pubkey.c \
|
|
|
|
bitcoin/pullpush.c \
|
|
|
|
bitcoin/script.c \
|
|
|
|
bitcoin/shadouble.c \
|
|
|
|
bitcoin/short_channel_id.c \
|
|
|
|
bitcoin/signature.c \
|
|
|
|
bitcoin/tx.c \
|
|
|
|
bitcoin/varint.c
|
|
|
|
|
|
|
|
BITCOIN_OBJS := $(BITCOIN_SRC:.c=.o)
|
|
|
|
|
|
|
|
BITCOIN_HEADERS := bitcoin/address.h \
|
|
|
|
bitcoin/base58.h \
|
|
|
|
bitcoin/block.h \
|
|
|
|
bitcoin/chainparams.h \
|
2018-06-20 08:47:57 +02:00
|
|
|
bitcoin/feerate.h \
|
2017-08-28 18:13:01 +02:00
|
|
|
bitcoin/locktime.h \
|
|
|
|
bitcoin/preimage.h \
|
|
|
|
bitcoin/privkey.h \
|
|
|
|
bitcoin/pubkey.h \
|
|
|
|
bitcoin/pullpush.h \
|
|
|
|
bitcoin/script.h \
|
|
|
|
bitcoin/shadouble.h \
|
|
|
|
bitcoin/short_channel_id.h \
|
|
|
|
bitcoin/signature.h \
|
|
|
|
bitcoin/tx.h \
|
|
|
|
bitcoin/varint.h
|
|
|
|
|
|
|
|
check-source: $(BITCOIN_SRC:%=check-src-include-order/%) \
|
|
|
|
$(BITCOIN_HEADERS:%=check-hdr-include-order/%)
|
|
|
|
|
|
|
|
# Bitcoin objects depends on bitcoin/ external/ and ccan
|
|
|
|
$(BITCOIN_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(EXTERNAL_HEADERS)
|
|
|
|
|
2017-01-04 04:39:20 +01:00
|
|
|
check-source-bolt: $(BITCOIN_SRC:%=bolt-check/%) $(BITCOIN_HEADERS:%=bolt-check/%)
|
|
|
|
|
2017-08-28 18:02:01 +02:00
|
|
|
check-makefile: check-bitcoin-makefile
|
|
|
|
|
|
|
|
check-bitcoin-makefile:
|
|
|
|
@if [ "`echo bitcoin/*.h`" != "$(BITCOIN_HEADERS)" ]; then echo BITCOIN_HEADERS incorrect; exit 1; fi
|
|
|
|
|
2017-01-04 04:39:20 +01:00
|
|
|
check-whitespace: $(BITCOIN_SRC:%=check-whitespace/%) $(BITCOIN_HEADERS:%=check-whitespace/%) check-whitespace/bitcoin/Makefile
|
|
|
|
|
2017-11-23 04:03:07 +01:00
|
|
|
clean: bitcoin-clean
|
|
|
|
|
|
|
|
bitcoin-clean:
|
|
|
|
$(RM) $(BITCOIN_OBJS) $(BITCOIN_TEST_PROGRAMS) $(BITCOIN_TEST_OBJS)
|
2018-01-24 06:24:38 +01:00
|
|
|
|
|
|
|
include bitcoin/test/Makefile
|