Files
SilentDragonXLite/lib/Makefile
2019-10-27 07:14:06 -07:00

26 lines
655 B
Makefile

ifeq ($(shell uname),Darwin)
EXT := dylib
CFLAGS := "-mmacosx-version-min=10.11"
else
EXT := a
CFLAGS := ""
endif
all: release
winrelease: target/x86_64-pc-windows-gnu/release/zecwalletlite.lib
target/x86_64-pc-windows-gnu/release/zecwalletlite.lib: src/lib.rs Cargo.toml
cargo build --lib --release --target x86_64-pc-windows-gnu
release: target/release/zecwalletlite.$(EXT)
debug: target/debug/zecwalletlite.$(EXT)
target/release/zecwalletlite.$(EXT): src/lib.rs Cargo.toml
CFLAGS=$(CFLAGS) cargo build --lib --release
target/debug/zecwalletlite.$(EXT): src/lib.rs Cargo.toml
CFLAGS=$(CFLAGS) cargo build --lib
clean:
rm -rf target