forked from CESSProject/cess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (40 loc) · 750 Bytes
/
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
BUILD?=release
OA?=1
VC?=1
XARGS=
DEV=
ifeq ($(DEV),1)
OA=0
VC=0
BUILD=debug
endif
ifeq ($(BUILD),release)
XARGS = --release
endif
ifeq ($(OA),1)
XARGS += --features only-attestation
endif
ifeq ($(VC),1)
XARGS += --features verify-cesealbin
endif
.PHONY: all node ceseal test clippy
all: ceseal
cargo build ${XARGS}
node:
cargo build -p cess-node ${XARGS}
cifrost:
cargo build -p cifrost ${XARGS}
handover:
cargo build -p handover --release
ceseal:
make -C standalone/teeworker/ceseal
test:
cargo test --workspace --exclude node-executor --exclude cess-node
clippy:
cargo clippy --tests
make clippy -C standalone/teeworker/ceseal
lint:
cargo dylint --all --workspace
clean:
cargo clean
make -C standalone/teeworker/ceseal clean