-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (54 loc) · 2.39 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
78
79
80
# Copyright (c) Shubham Mishra. All rights reserved.
# Licensed under the MIT License.
.PHONY: pirateship_logger
pirateship_logger:
CC=clang CXX=clang++ cargo build --release
.PHONY: pirateship_kvs
pirateship_kvs:
CC=clang CXX=clang++ cargo build --release --features pirateship,app_kvs,storage,fast_path,platforms --no-default-features
.PHONY: signed_raft_kvs
signed_raft_kvs:
CC=clang CXX=clang++ cargo build --release --features signed_raft,app_kvs,storage --no-default-features
.PHONY: pirateship_logger_basic
pirateship_logger_basic:
CC=clang CXX=clang++ cargo build --release --features pirateship,app_logger --no-default-features
.PHONY: pirateship_logger_evil
pirateship_logger_evil:
CC=clang CXX=clang++ cargo build --release --features pirateship,app_logger,storage,fast_path,platforms,evil --no-default-features
.PHONY: pirateship_logger_nofast
pirateship_logger_nofast:
CC=clang CXX=clang++ cargo build --release --features pirateship,app_logger,storage,platforms --no-default-features
.PHONY: pirateship_logger_nostorage
pirateship_logger_nostorage:
CC=clang CXX=clang++ cargo build --release --features pirateship,app_logger,fast_path,platforms --no-default-features
.PHONY: lucky_raft_logger
lucky_raft_logger:
CC=clang CXX=clang++ cargo build --release --features lucky_raft,app_logger,storage --no-default-features
.PHONY: signed_raft_logger
signed_raft_logger:
CC=clang CXX=clang++ cargo build --release --features signed_raft,app_logger,storage --no-default-features
.PHONY: diverse_raft_logger
diverse_raft_logger:
CC=clang CXX=clang++ cargo build --release --features diverse_raft,app_logger,storage --no-default-features
.PHONY: jolteon_logger
jolteon_logger:
CC=clang CXX=clang++ cargo build --release --features jolteon,app_logger,storage,fast_path --no-default-features
.PHONY: chained_pbft_logger
chained_pbft_logger:
CC=clang CXX=clang++ cargo build --release --features chained_pbft,app_logger,storage --no-default-features
.PHONY: bench
bench:
CC=clang CXX=clang++ cargo bench
.PHONY: clean
clean:
rm -f perf.data perf.data.old
rm -rf *.log logs/
.PHONY: install-deps-ubuntu
install-deps-ubuntu:
apt update
apt install -y build-essential cmake clang llvm pkg-config
apt install -y jq
apt install -y protobuf-compiler
apt install -y linux-tools-common linux-tools-generic linux-tools-`uname -r`
apt install -y net-tools
apt install -y ca-certificates curl libssl-dev