Compile fixes
This commit is contained in:
24
lib/Makefile
Normal file
24
lib/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
ifeq ($(shell uname),Darwin)
|
||||
EXT := dylib
|
||||
else
|
||||
EXT := a
|
||||
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
|
||||
cargo build --lib --release
|
||||
|
||||
target/debug/zecwalletlite.$(EXT): src/lib.rs Cargo.toml
|
||||
cargo build --lib
|
||||
|
||||
clean:
|
||||
rm -rf target
|
||||
@@ -6,7 +6,7 @@ extern "C"{
|
||||
#endif
|
||||
|
||||
extern char * litelib_initialze (bool dangerous, const char* server);
|
||||
extern char * litelib_execute (char* s);
|
||||
extern char * litelib_execute (const char* s);
|
||||
extern void litelib_rust_free_string (char* s);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user