-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
50 lines (35 loc) · 1.24 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
BIN:=~/bin
SOLC:=$(BIN)/solc
LIB:=$(BIN)/stdlib_sol.tvm
LINKER:=$(BIN)/tvm_linker
clean:
rm -rf build/*
#########################################################################
# Compile and link
#########################################################################
CONTRACTS:=Repo Root Medium OwnerWallet TokenWallet
TVCS:=$(patsubst %, build/%.tvc,$(CONTRACTS))
compile: $(TVCS)
echo $^
rm -rf build/*.code
# recipe to compile and link
build/%.tvc: src/%.sol
$(SOLC) $^ -o build
$(LINKER) compile --lib $(LIB) build/$*.code -a build/$*.abi.json -o $@
#########################################################################
# Deploy
#########################################################################
predeploy:
-python scripts/uax.py $(net) setup
deploy:
-python scripts/deploy.py $(net)
#########################################################################
# Generate user wallets
#########################################################################
genusers:
-python scripts/genwallets.py $(net)
#########################################################################
# Dump system contracts addresses
#########################################################################
dumpenv:
-python scripts/dumpenv.py $(net)