Adding Julia and C++ examples
This commit is contained in:
16
cpp-to-rust/Makefile
Normal file
16
cpp-to-rust/Makefile
Normal 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
|
||||
Reference in New Issue
Block a user