Adding Julia and C++ examples

This commit is contained in:
timmonfette1
2018-02-24 17:30:21 -05:00
parent f12fbd3e42
commit 30999d4c78
9 changed files with 86 additions and 0 deletions

16
cpp-to-rust/Makefile Normal file
View File

@@ -0,0 +1,16 @@
ifeq ($(shell uname),Darwin)
EXT := dylib
else
EXT := so
endif
all: target/debug/libdouble_input.$(EXT)
g++ src/main.cpp -L ./target/debug/ -ldouble_input -o run
LD_LIBRARY_PATH=./target/debug/ ./run
target/debug/libdouble_input.$(EXT): src/lib.rs Cargo.toml
cargo build
clean:
rm -rf target
rm -rf run