Add lua (luajit) to rust example

This commit is contained in:
Livio Ribeiro
2015-09-25 16:57:26 -03:00
parent 640bfb9da8
commit 46c53a9e8a
4 changed files with 47 additions and 0 deletions

14
luajit-to-rust/Makefile Normal file
View File

@@ -0,0 +1,14 @@
ifeq ($(shell uname),Darwin)
EXT := dylib
else
EXT := so
endif
all: target/debug/libdouble_input.$(EXT)
luajit src/main.lua
target/debug/libdouble_input.$(EXT): src/lib.rs Cargo.toml
cargo build
clean:
rm -rf target