15 lines
306 B
Makefile
15 lines
306 B
Makefile
rust.build:
|
|
@-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/
|
|
|
|
rust.test:
|
|
cd ./mcaptcha-pow-ffi/ && cargo test
|
|
|
|
example:
|
|
go run examples/main.go ^C
|
|
|
|
test:
|
|
go test
|