ecrecover/Makefile
2019-08-15 13:50:43 +02:00

23 lines
430 B
Makefile

UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
artefact = libecrecover.so
endif
ifeq ($(UNAME), Darwin)
artefact = libecrecover.dylib
endif
all: priv/ecrecover.so
priv/ecrecover.so: src/lib.rs parity-ethereum/
cargo build --release
cp target/release/$(artefact) priv/ecrecover.so
clean:
rm -f priv/ecrecover.so target/release/$(artefact)
parity-ethereum/:
git clone https://github.com/johnsnewby/parity-ethereum.git