mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-09 07:10:16 +01:00
b7789bf065
Spread to individual Makefiles, and include headers. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
21 lines
717 B
Makefile
21 lines
717 B
Makefile
# Included for one dir up.
|
|
|
|
# Note that these actually #include everything they need, except ccan/.
|
|
# That allows for unit testing of statics, and special effects.
|
|
|
|
BITCOIN_TEST_SRC := $(wildcard bitcoin/test/run-*.c)
|
|
BITCOIN_TEST_OBJS := $(BITCOIN_TEST_SRC:.c=.o)
|
|
BITCOIN_TEST_PROGRAMS := $(BITCOIN_TEST_OBJS:.o=)
|
|
|
|
$(BITCOIN_TEST_PROGRAMS): $(CCAN_OBJS)
|
|
|
|
$(BITCOIN_TEST_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(BITCOIN_SRC)
|
|
|
|
check: bitcoin-tests
|
|
|
|
check-source-bolt: $(BITCOIN_SRC:%=bolt-check/%) $(BITCOIN_HEADERS:%=bolt-check/%)
|
|
|
|
check-whitespace: $(BITCOIN_SRC:%=check-whitespace/%) $(BITCOIN_HEADERS:%=check-whitespace/%) check-whitespace/bitcoin/Makefile
|
|
|
|
bitcoin-tests: $(BITCOIN_TEST_PROGRAMS:%=unittest/%)
|