You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
512 B

5 years ago
INSTALL:= /usr/local/lib
5 years ago
INSTALL-BIN:= /usr/local/bin
CLI:= cli
5 years ago
5 years ago
5 years ago
khash:
5 years ago
RUSTFLAGS="-C target-cpu=native" cargo build --release
5 years ago
strip ./target/release/libkhash.so
5 years ago
cd $(CLI) && $(MAKE) kana-hash
5 years ago
5 years ago
khash-nonative:
cargo build --release
cd $(CLI) && $(MAKE) kana-hash
5 years ago
test:
cargo test
5 years ago
cd $(CLI) && $(MAKE)
5 years ago
install:
5 years ago
cp -f ./target/release/libkhash.so $(INSTALL)/libkhash.so
5 years ago
cp -f $(CLI)/build/kana-hash $(INSTALL-BIN)/kana-hash
5 years ago
uninstall:
rm -f $(INSTALL)/libkana_hash.so
5 years ago
rm -f $(INSTALL-BIN)/kana-hash