mach-sys 0.5.1

forked from original mach, and merge from mach2/machx. A Rust interface to the user-space API of the Mach 3.0 kernel that underlies OSX.
Documentation
all:
	make build-without-std
	make build-with-std
	make post-build

build-without-std:
	cargo build --release

build-with-std:
	cargo rustc --release --features std --crate-type cdylib
	mv target/release/libmach_sys.dylib target/release/libmach_sys.cdylib || mv target/release/libmach_sys.so target/release/libmach_sys.cdylib.so || true
	
	cargo rustc --release --features std --crate-type dylib
	
	cargo rustc --release --features std --crate-type staticlib

post-build:
	bash --norc -x ./post-build.sh || true

test:
	# no need to use std
	cargo test --release
	make post-test

post-test:
	echo test finish

ios-build:
	bash --norc -x ./ios-build.sh