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] *.sw[po]
libcrypto*.dylib *.dylib
libcrypto*.so *.so
*.dSYM/ *.dSYM/
crypto /.rust
/bin/
/build/
/lib/
/src/crypto/lib

View File

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

View File

@ -1,9 +1,13 @@
RUSTPKG ?= rustpkg
RUSTC ?= rustc
RUST_FLAGS ?= -Z debug-info -O
crypto: $(wildcard *.rs) all:
rustc crypto.rs $(RUSTPKG) $(RUST_FLAGS) install crypto
rustc --test crypto.rs
test:
$(RUSTC) $(RUST_FLAGS) --test src/crypto/lib.rs
./src/crypto/lib
clean: clean:
rm -f crypto libcrypto-*.so rm -rf bin/ lib/ build/ src/crypto/lib
rm -f libcrypto-*.dylib
rm -rf *.dSYM