mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
This way sub-Makefiles can add their own files to check. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
19 lines
588 B
Makefile
19 lines
588 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/%)
|
|
|
|
bitcoin-tests: $(BITCOIN_TEST_PROGRAMS:%=unittest/%)
|