aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErick Tryzelaar <[email protected]>2013-12-18 08:51:10 -0800
committerErick Tryzelaar <[email protected]>2013-12-18 08:51:10 -0800
commita9ce2a36d54ac08608d689a5f0ec441f74e56d61 (patch)
tree813ceb833817cfac21a1cc920446f8a7927acf76 /Makefile
parentUpdate to rust 0.9x-pre (diff)
downloadrust-openssl-a9ce2a36d54ac08608d689a5f0ec441f74e56d61.tar.xz
rust-openssl-a9ce2a36d54ac08608d689a5f0ec441f74e56d61.zip
Switch over to rustpkg
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