mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 06:38:12 -05:00
Intended to address tau RefID "Gifn1u". There are still a few things that require nightly. - cargo +nightly fmt - fuzzing
27 lines
455 B
Makefile
27 lines
455 B
Makefile
.POSIX:
|
|
|
|
# Cargo binary
|
|
CARGO = cargo
|
|
|
|
# Compile target
|
|
RUST_TARGET = $(shell rustc -Vv | grep '^host: ' | cut -d' ' -f2)
|
|
|
|
PROOFS_SRC = signal.zk slash.zk
|
|
PROOFS_BIN = $(PROOFS_SRC:=.bin)
|
|
|
|
ZKAS = ../../../../zkas
|
|
|
|
all: $(PROOFS_BIN)
|
|
$(CARGO) run --target=$(RUST_TARGET) --release
|
|
|
|
$(ZKAS):
|
|
$(MAKE) -C ../../../../zkas
|
|
|
|
$(PROOFS_BIN): $(ZKAS) $(PROOFS_SRC)
|
|
$(ZKAS) $(basename $@) -o $@
|
|
|
|
clean:
|
|
rm -rf target $(PROOFS_BIN) Cargo.lock
|
|
|
|
.PHONY: all clean
|