zcash-haskell/Makefile

15 lines
599 B
Makefile
Raw Permalink Normal View History

2023-05-04 14:23:05 +00:00
rustlib := librustzcash-wrapper/target/x86_64-unknown-linux-gnu/debug
.PHONY: all
all: haskell
2023-05-04 14:23:05 +00:00
2023-06-14 15:54:20 +00:00
test: test/Spec.hs haskell
stack test
haskell: src/ZcashHaskell/Orchard.hs src/ZcashHaskell/Sapling.hs src/ZcashHaskell/Types.hs src/ZcashHaskell/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
$(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