mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-29 10:04:41 +01:00
c76cfe9c5c
And add secp_recovery to headers, while we're at it. ``` ./wire/wire.h:7:10: fatal error: secp256k1_recovery.h: No such file or directory #include <secp256k1_recovery.h> ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. Makefile:254: recipe for target 'connectd/test/run-initiator-success.o' failed make: *** [connectd/test/run-initiator-success.o] Error 1 m ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
25 lines
804 B
Makefile
25 lines
804 B
Makefile
# Note that these actually #include everything they need, except ccan/ and bitcoin/.
|
|
# That allows for unit testing of statics, and special effects.
|
|
CONNECTD_TEST_SRC := $(wildcard connectd/test/run-*.c)
|
|
CONNECTD_TEST_OBJS := $(CONNECTD_TEST_SRC:.c=.o)
|
|
CONNECTD_TEST_PROGRAMS := $(CONNECTD_TEST_OBJS:.o=)
|
|
|
|
CONNECTD_TEST_COMMON_OBJS := \
|
|
common/features.o \
|
|
common/pseudorand.o \
|
|
common/type_to_string.o \
|
|
common/utils.o
|
|
|
|
ALL_C_SOURCES += $(CONNECTD_TEST_SRC)
|
|
ALL_TEST_PROGRAMS += $(CONNECTD_TEST_PROGRAMS)
|
|
|
|
update-mocks: $(CONNECTD_TEST_SRC:%=update-mocks/%)
|
|
|
|
$(CONNECTD_TEST_PROGRAMS): $(CONNECTD_TEST_COMMON_OBJS) $(BITCOIN_OBJS)
|
|
|
|
# Test objects depend on ../ src and headers.
|
|
$(CONNECTD_TEST_OBJS): $(CONNECTD_HEADERS) $(CONNECTD_SRC)
|
|
|
|
check-units: $(CONNECTD_TEST_PROGRAMS:%=unittest/%)
|
|
|