-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeopt
executable file
·94 lines (90 loc) · 1.82 KB
/
makeopt
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
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
# If ocamlopt is not in your PATH, put the full path here.
export OCAMLOPT=ocamlopt
export OCAMLLEX=ocamllex
$OCAMLLEX src/lexer.mll
$OCAMLOPT -I bin -o bin/config.cmi -c src/config.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/config.cmx -c src/config.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/secp256k1.cmi -c src/secp256k1.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/secp256k1.cmx nums.cmxa -c src/secp256k1.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/cryptocurr.cmi -c src/cryptocurr.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/cryptocurr.cmx nums.cmxa -c src/cryptocurr.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/hash.cmi -c src/hash.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/hash.cmx nums.cmxa -c src/hash.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/syntax.cmi -c src/syntax.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/syntax.cmx nums.cmxa -c src/syntax.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/parser.cmi -c src/parser.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/parser.cmx nums.cmxa -c src/parser.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/lexer.cmx -c src/lexer.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/interpret.cmi -c src/interpret.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/interpret.cmx nums.cmxa -c src/interpret.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -I bin -o bin/mgcheck.cmx -c src/mgcheck.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLOPT -o bin/egal unix.cmxa nums.cmxa bin/config.cmx bin/secp256k1.cmx bin/cryptocurr.cmx bin/hash.cmx bin/syntax.cmx bin/parser.cmx bin/lexer.cmx bin/interpret.cmx bin/mgcheck.cmx
if [ $? -gt 0 ]
then
exit 1
fi