Compile fixes

This commit is contained in:
Aditya Kulkarni
2019-10-15 14:01:11 -07:00
parent 3de363cbb5
commit 306c39bb09
13 changed files with 719 additions and 1693 deletions

24
lib/Makefile Normal file
View 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

View File

@@ -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