-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·41 lines (27 loc) · 880 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
all: spec type parser_inter parser_compil lexer_compil x86_64_inter x86_64 compile main
ocamlc -annot -g -o pscala nums.cma scala_spec.cmo scala_type.cmo scala_lexer.cmo scala_parser.cmo x86_64.cmo scala_compile.cmo main.cmo
main:
ocamlc -annot -g -c main.ml
lexer:
ocamllex scala_lexer.mll
parser:
menhir --infer --explain -v scala_parser.mly
spec:
ocamlc -annot -g -c scala_spec.ml
type:
ocamlc -annot -g -c scala_type.ml
parser_compil: parser
ocamlc -annot -g -c scala_parser.ml
parser_inter: parser
ocamlc -annot -g -c scala_parser.mli
lexer_compil: lexer
ocamlc -annot -g -c scala_lexer.ml
x86_64_inter:
ocamlc -annot -g -c x86_64.mli
x86_64:
ocamlc -annot -g -c x86_64.ml
compile: x86_64
ocamlc -annot -g -c scala_compile.ml
clean:
rm -f *.cm[io] *.o *.annot *~ pscala scala_lexer.ml scala_parser.ml scala_parser.mli
rm -f *.output *.automaton