15 lines
301 B
Makefile
15 lines
301 B
Makefile
build-rust:
|
|
@-rm -rf lib
|
|
mkdir lib/
|
|
cd ./mcaptcha-pow-ffi/ && cargo build --release \
|
|
&& cp ./target/release/libmcaptcha_pow_ffi.a ../lib/ \
|
|
&& cp ./target/release/libmcaptcha_pow_ffi.so ../lib/
|
|
|
|
test:
|
|
cd ./mcaptcha-pow-ffi/ && cargo test
|
|
|
|
example:
|
|
go run examples/main.go ^C
|
|
|
|
test:
|
|
go test
|