Switch over to rustpkg

This commit is contained in:
Erick Tryzelaar 2013-12-18 08:51:10 -08:00
parent 9dd1c622f4
commit a9ce2a36d5
11 changed files with 18 additions and 11 deletions

10
.gitignore vendored
View File

@ -1,5 +1,9 @@
*.sw[po]
libcrypto*.dylib
libcrypto*.so
*.dylib
*.so
*.dSYM/
crypto
/.rust
/bin/
/build/
/lib/
/src/crypto/lib

View File

@ -4,5 +4,4 @@ before_install:
install:
- sudo apt-get install rust-nightly
script:
- make all
- ./crypto
- make all test

View File

@ -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