mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
ae6faf7f9c
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
17 lines
513 B
Makefile
17 lines
513 B
Makefile
COMMON_TEST_SRC := $(wildcard common/test/run-*.c)
|
|
COMMON_TEST_OBJS := $(COMMON_TEST_SRC:.c=.o)
|
|
COMMON_TEST_PROGRAMS := $(COMMON_TEST_OBJS:.o=)
|
|
|
|
COMMON_TEST_COMMON_OBJS := \
|
|
common/utils.o
|
|
|
|
$(COMMON_TEST_PROGRAMS): $(COMMON_TEST_COMMON_OBJS) $(BITCOIN_OBJS)
|
|
$(COMMON_TEST_OBJS): $(COMMON_HEADERS) $(WIRE_HEADERS) $(COMMON_SRC)
|
|
|
|
ALL_TEST_PROGRAMS += $(COMMON_TEST_PROGRAMS)
|
|
ALL_OBJS += $(COMMON_TEST_PROGRAMS:=.o)
|
|
|
|
update-mocks: $(COMMON_TEST_SRC:%=update-mocks/%)
|
|
|
|
check: $(COMMON_TEST_PROGRAMS:%=unittest/%)
|