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.

31 lines
714 B

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