-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
43 lines (30 loc) · 905 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
CLI = .build/miximus_cli
CMAKE ?= cmake
GIT ?= git
all: $(CLI) test
$(CLI): .build
$(MAKE) -C $(dir $@)
.build:
mkdir -p $@
cd $@ && $(CMAKE) ../circuit/ || rm -rf ../$@
debug:
mkdir -p .build && cd .build && $(CMAKE) -DCMAKE_BUILD_TYPE=Debug ../circuit/
release:
mkdir -p .build && cd .build && $(CMAKE) -DCMAKE_BUILD_TYPE=Release ../circuit/
performance:
mkdir -p .build && cd .build && $(CMAKE) -DCMAKE_BUILD_TYPE=Release -DPERFORMANCE=1 ../circuit/
git-submodules:
$(GIT) submodule update --init --recursive
git-pull:
$(GIT) pull --recurse-submodules
$(GIT) submodule update --recursive --remote
clean:
rm -rf .build solidity/node_modules
python-test:
$(MAKE) -C python test
solidity-test:
$(MAKE) -C solidity test
test: .keys/miximus.pk.raw solidity-test python-test
.keys/miximus.pk.raw: $(CLI)
mkdir -p $(dir $@)
$(CLI) genkeys .keys/miximus.pk.raw .keys/miximus.vk.json