Add macos min version

This commit is contained in:
Aditya Kulkarni
2019-10-27 06:25:35 -07:00
parent 13e4a1c1a0
commit e572b5c062

View File

@@ -1,7 +1,9 @@
ifeq ($(shell uname),Darwin) ifeq ($(shell uname),Darwin)
EXT := dylib EXT := dylib
CFLAGS := "-mmacosx-version-min=10.11"
else else
EXT := a EXT := a
CFLAGS := ""
endif endif
all: release all: release
@@ -15,10 +17,10 @@ release: target/release/zecwalletlite.$(EXT)
debug: target/debug/zecwalletlite.$(EXT) debug: target/debug/zecwalletlite.$(EXT)
target/release/zecwalletlite.$(EXT): src/lib.rs Cargo.toml target/release/zecwalletlite.$(EXT): src/lib.rs Cargo.toml
cargo build --lib --release CFLAGS=$(CFLAGS) cargo build --lib --release
target/debug/zecwalletlite.$(EXT): src/lib.rs Cargo.toml target/debug/zecwalletlite.$(EXT): src/lib.rs Cargo.toml
cargo build --lib CFLAGS=$(CFLAGS) cargo build --lib
clean: clean:
rm -rf target rm -rf target