perl-to-rust

This commit is contained in:
Hao Wu
2015-04-24 15:51:08 -07:00
parent 858886c0d1
commit 134007b116
4 changed files with 42 additions and 0 deletions

15
perl-to-rust/Makefile Normal file
View File

@@ -0,0 +1,15 @@
ifeq ($(shell uname),Darwin)
EXT := dylib
else
EXT := so
endif
all: target/libdouble_input.so
perl src/main.pl
target/libdouble_input.so: src/lib.rs Cargo.toml
cargo build
(cd target && ln -nsf debug/libdouble_input-*$(EXT) libdouble_input.so)
clean:
rm -rf target