Tweak other makefiles for OSX

This commit is contained in:
Alex Crichton
2015-04-21 16:55:16 -07:00
parent 5680d650ab
commit a5ac091414
4 changed files with 24 additions and 6 deletions

View File

@@ -1,9 +1,15 @@
ifeq ($(shell uname),Darwin)
EXT := dylib
else
EXT := so
endif
all: target/libdouble_input.so
python src/main.py
target/libdouble_input.so: src/lib.rs Cargo.toml
cargo build
(cd target && ln -nsf debug/libdouble_input-* libdouble_input.so)
(cd target && ln -nsf debug/libdouble_input-*$(EXT) libdouble_input.so)
clean:
rm -rf target