2023-05-04 14:23:05 +00:00
|
|
|
rustlib := librustzcash-wrapper/target/x86_64-unknown-linux-gnu/debug
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
2023-05-04 20:26:49 +00:00
|
|
|
all: haskell
|
2023-05-04 14:23:05 +00:00
|
|
|
|
2023-06-14 14:55:52 +00:00
|
|
|
haskell: src/HaskellZcash/Orchard.hs src/HaskellZcash/Sapling.hs src/HaskellZcash/Types.hs src/HaskellZcash/Utils.hs src/C/Zcash.chs package.yaml stack.yaml $(rustlib)/rustzcash_wrapper.h $(rustlib)/librustzcash_wrapper.a $(rustlib)/librustzcash_wrapper.so $(rustlib)/rustzcash_wrapper-uninstalled.pc
|
2023-05-04 14:23:05 +00:00
|
|
|
stack build
|
|
|
|
|
2023-05-04 20:26:49 +00:00
|
|
|
$(rustlib)/rustzcash_wrapper.h: librustzcash-wrapper/src/lib.rs librustzcash-wrapper/Cargo.toml
|
2023-05-04 14:23:05 +00:00
|
|
|
cd librustzcash-wrapper && cargo +nightly cbuild
|