aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 9719e55c..5e385052 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
+RUSTPKG ?= rustpkg
+RUSTC ?= rustc
+RUST_FLAGS ?= -Z debug-info -O
-crypto: $(wildcard *.rs)
- rustc crypto.rs
- rustc --test crypto.rs
+all:
+ $(RUSTPKG) $(RUST_FLAGS) install crypto
+
+test:
+ $(RUSTC) $(RUST_FLAGS) --test src/crypto/lib.rs
+ ./src/crypto/lib
clean:
- rm -f crypto libcrypto-*.so
- rm -f libcrypto-*.dylib
- rm -rf *.dSYM
+ rm -rf bin/ lib/ build/ src/crypto/lib