29 lines
595 B
Makefile
29 lines
595 B
Makefile
|
##################
|
||
|
## 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
|