PHP to rust FFI example
This commit is contained in:
14
php-to-rust/Makefile
Normal file
14
php-to-rust/Makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
ifeq ($(shell uname),Darwin)
|
||||
EXT := dylib
|
||||
else
|
||||
EXT := so
|
||||
endif
|
||||
|
||||
all: target/debug/libdouble_input.$(EXT)
|
||||
php src/ffi.php
|
||||
|
||||
target/debug/libdouble_input.$(EXT): src/lib.rs Cargo.toml
|
||||
cargo build
|
||||
|
||||
clean:
|
||||
rm -rf target
|
||||
Reference in New Issue
Block a user