Files
rust-ffi-examples/go-to-rust-cgo-dynamic/Makefile
2019-08-16 02:06:23 +02:00

15 lines
231 B
Makefile

ifeq ($(shell uname),Darwin)
EXT := dylib
else
EXT := so
endif
all: target/debug/libdouble_input.$(EXT)
go run src/double.go
target/debug/libdouble_input.$(EXT): src/lib.rs Cargo.toml
cargo build
clean:
rm -rf target