mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 17:44:47 +01:00
24536c5561
This means it needs to be linked ~everywhere. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
17 lines
677 B
Makefile
17 lines
677 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 := common/utils.o common/setup.o common/autodata.o
|
|
|
|
$(BITCOIN_TEST_PROGRAMS): $(CCAN_OBJS) $(BITCOIN_TEST_COMMON_OBJS) bitcoin/chainparams.o
|
|
$(BITCOIN_TEST_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(BITCOIN_SRC)
|
|
|
|
ALL_TEST_PROGRAMS += $(BITCOIN_TEST_PROGRAMS)
|
|
ALL_C_SOURCES += $(BITCOIN_TEST_PROGRAMS:=.c)
|
|
|
|
# This needs to know what level of optimization we're using.
|
|
bitcoin/test/run-secret_eq_consttime.o: CFLAGS += -DCOPTFLAGS="\"${COPTFLAGS}\""
|
|
|
|
check-units: $(BITCOIN_TEST_PROGRAMS:%=unittest/%)
|