status-node-manager/Makefile

39 lines
821 B
Makefile
Raw Normal View History

##################
## RLN ##
##################
.PHONY: librln
LIBRLN_BUILDDIR := $(CURDIR)/vendor/zerokit
LIBRLN_VERSION := v0.3.4
ifeq ($(OS),Windows_NT)
LIBRLN_FILE := rln.lib
else
LIBRLN_FILE := librln_$(LIBRLN_VERSION).a
endif
$(LIBRLN_FILE):
echo -e $(BUILD_MSG) "$@" && \
./scripts/build_rln.sh $(LIBRLN_BUILDDIR) $(LIBRLN_VERSION) $(LIBRLN_FILE)
librln: | $(LIBRLN_FILE)
$(eval NIM_PARAMS += --passL:$(LIBRLN_FILE) --passL:-lm)
clean-librln:
cargo clean --manifest-path vendor/zerokit/rln/Cargo.toml
rm -f $(LIBRLN_FILE)
# Extend clean target
clean: | clean-librln
2024-01-10 20:14:13 +00:00
##################
## WAKU UTILS ##
##################
waku-utils: | librln
nim wakuUtils $(NIM_PARAMS) nimbus_node_manager.nims
waku-utils-example: | librln
nim wakuUtilsExamples $(NIM_PARAMS) nimbus_node_manager.nims