libbolt/Makefile

44 lines
828 B
Makefile
Raw Normal View History

2018-07-24 18:42:07 -07:00
.PHONY: all debug bench test update doc clean
2018-02-24 00:12:58 -08:00
all:
2018-07-24 18:42:07 -07:00
export RUSTFLAGS=-Awarnings
cargo +nightly build
cargo +nightly run --example bolt_test
2018-07-24 18:42:07 -07:00
debug:
export RUST_BACKTRACE=1
2018-07-14 18:17:00 -07:00
cargo +nightly build
cargo +nightly run --example bolt_test
2018-02-24 00:12:58 -08:00
2018-12-07 06:30:27 -08:00
release:
cargo +nightly build --release
cargo +nightly run --release --example bolt_test
2018-12-07 06:30:27 -08:00
2018-06-05 10:26:16 -07:00
bench:
2018-07-14 18:17:00 -07:00
cargo +nightly bench
2018-06-05 10:26:16 -07:00
2018-02-24 23:46:52 -08:00
test:
# runs the unit test suite
cargo +nightly test --release #-- --nocapture
2018-02-24 23:46:52 -08:00
2018-06-07 23:57:46 -07:00
update:
# updates local git repos (for forked bn lib)
2018-07-14 18:17:00 -07:00
cargo +nightly update
2018-06-07 23:57:46 -07:00
2018-02-24 23:46:52 -08:00
doc:
# generates the documentation
2018-08-14 10:05:33 -07:00
cargo +nightly doc
2018-02-24 23:46:52 -08:00
pythontests:
cargo +nightly build
python src/main.py
cpptests:
2019-03-28 19:11:52 -07:00
@cargo +nightly build
@g++ src/main.cpp -L ./target/debug/ -lbolt -I ./include -o cpp_test
@LD_LIBRARY_PATH=./target/debug/ ./cpp_test
@rm cpp_test
2018-02-24 00:12:58 -08:00
clean:
2018-07-14 18:17:00 -07:00
cargo +nightly clean