forked from eminmtas/aligned_layer_tendermint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (60 loc) · 2.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
__LAMBDAWORKS_FFI_LINUX__:
build-cairo-ffi-macos:
@cd verifiers/cairo_platinum/lib \
&& cargo build --release \
&& cp target/release/libcairo_platinum_ffi.dylib ./libcairo_platinum.dylib \
&& cp target/release/libcairo_platinum_ffi.a ./libcairo_platinum.a
build-cairo-ffi-linux:
@cd verifiers/cairo_platinum/lib \
&& cargo build --release \
&& cp target/release/libcairo_platinum_ffi.so ./libcairo_platinum.so \
&& cp target/release/libcairo_platinum_ffi.a ./libcairo_platinum.a
test-ffi-cairo:
go test -v ./verifiers/cairo_platinum
__SP1_FFI__:
build-sp1-ffi-macos:
@cd verifiers/sp1/lib \
&& cargo build --release \
&& cp target/release/libsp1_verifier_wrapper.dylib ./libsp1_verifier.dylib \
&& cp target/release/libsp1_verifier_wrapper.a ./libsp1_verifier.a
build-sp1-ffi-linux:
@cd verifiers/sp1/lib \
&& cargo build --release \
&& cp target/release/libsp1_verifier_wrapper.so ./libsp1_verifier.so \
&& cp target/release/libsp1_verifier_wrapper.a ./libsp1_verifier.a
test-ffi-sp1:
go test -v ./verifiers/sp1
__KIMCHI_FFI__: ##
build-kimchi-macos:
@cd verifiers/kimchi/lib \
&& cargo build --release \
&& cp target/release/libkimchi_verifier_ffi.dylib ./libkimchi_verifier.dylib \
&& cp target/release/libkimchi_verifier_ffi.a ./libkimchi_verifier.a
build-kimchi-linux:
@cd verifiers/kimchi/lib \
&& cargo build --release \
&& cp target/release/libkimchi_verifier_ffi.so ./libkimchi_verifier.so \
&& cp target/release/libkimchi_verifier_ffi.a ./libkimchi_verifier.a
test-kimchi-ffi:
go test -v ./verifiers/kimchi
__COSMOS_BLOCKCHAIN__:
build-libs-macos: build-cairo-ffi-macos build-sp1-ffi-macos build-kimchi-macos ;
build-libs-linux: build-cairo-ffi-linux build-sp1-ffi-linux build-kimchi-linux ;
build: verifiers/cairo_platinum/lib/libcairo_platinum.a verifiers/sp1/lib/libsp1_verifier.a verifiers/kimchi/lib/libkimchi_verifier.a
ignite chain build
build-macos: build-libs-macos
ignite chain build
build-linux: build-libs-linux
ignite chain build
run-macos: build-macos
ignite chain serve
run-linux: build-linux
ignite chain serve
clean-ffi:
rm -rf verifiers/cairo_platinum/lib/libcairo_platinum*
rm -rf verifiers/cairo_platinum/lib/target/release/libcairo_platinum*
rm -rf verifiers/kimchi/lib/libkimchi_verifier*
rm -rf verifiers/kimchi/lib/target/release/libcairo_verifier*
clean:
rm -rf ~/.alignedlayer
rm -f $$(which alignedlayerd)