mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
3cb03ab784
* Add BITCOIN_TEST_PROGRAMS to ALL_TEST_PROGRAMS * Refactor bitcoin test make directives into its own Makefile under bitcoin/test Signed-off-by: William Casarin <jb55@jb55.com>
16 lines
505 B
Makefile
16 lines
505 B
Makefile
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_COMMON_OBJS :=
|
|
|
|
$(BITCOIN_TEST_PROGRAMS): $(CCAN_OBJS) $(BITCOIN_TEST_COMMON_OBJS)
|
|
$(BITCOIN_TEST_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(BITCOIN_SRC)
|
|
|
|
ALL_TEST_PROGRAMS += $(BITCOIN_TEST_PROGRAMS)
|
|
ALL_OBJS += $(BITCOIN_TEST_PROGRAMS:=.o)
|
|
|
|
update-mocks: $(BITCOIN_TEST_SRC:%=update-mocks/%)
|
|
|
|
check: $(BITCOIN_TEST_PROGRAMS:%=unittest/%)
|