mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-09 23:27:17 +01:00
34 lines
835 B
Makefile
34 lines
835 B
Makefile
|
#! /usr/bin/make
|
||
|
|
||
|
# Designed to be run one level up
|
||
|
wallet-wrongdir:
|
||
|
$(MAKE) -C .. lightningd-all
|
||
|
|
||
|
check: wallet/tests
|
||
|
|
||
|
WALLET_LIB_SRC := \
|
||
|
wallet/db.c
|
||
|
|
||
|
WALLET_LIB_OBJS := $(WALLET_LIB_SRC:.c=.o)
|
||
|
WALLET_LIB_HEADERS := $(WALLET_LIB_SRC:.c=.h)
|
||
|
|
||
|
WALLET_TEST_SRC := $(wildcard wallet/*_tests.c)
|
||
|
WALLET_TEST_OBJS := $(WALLET_TEST_SRC:.c=.o)
|
||
|
WALLET_TEST_PROGRAMS := $(WALLET_TEST_OBJS:.o=)
|
||
|
|
||
|
$(WALLET_TEST_OBJS): $(WALLET_LIB_OBJS)
|
||
|
|
||
|
$(WALLET_TEST_PROGRAMS): $(CCAN_OBJS) daemon/log.o type_to_string.o daemon/pseudorand.o utils.o libsodium.a
|
||
|
|
||
|
$(WALLET_TEST_OBJS): $(CCAN_HEADERS)
|
||
|
wallet/tests: $(WALLET_TEST_PROGRAMS:%=unittest/%)
|
||
|
|
||
|
check-whitespace: $(WALLET_LIB_SRC:%=check-whitespace/%) $(WALLET_LIB_HEADERS:%=check-whitespace/%)
|
||
|
|
||
|
check-makefile: check-lightningd-makefile
|
||
|
|
||
|
clean: wallet-clean
|
||
|
|
||
|
wallet-clean:
|
||
|
$(RM) $(WALLET_LIB_OBJS)
|