-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 981 Bytes
/
Makefile
File metadata and controls
36 lines (31 loc) · 981 Bytes
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
OBJS = scanner.cmx parser.cmx ast.cmx codegen.cmx philosophers_code.cmx
philosophers_code : $(OBJS)
ocamlfind ocamlopt -linkpkg $(OBJS) -o philosophers_code
scanner.ml : scanner.mll
ocamllex scanner.mll
parser.ml parser.mli : parser.mly
ocamlyacc -v parser.mly
%.cmo : %.ml
ocamlc -c $<
%.cmi : %.mli
ocamlc -c $<
%.cmx : %.ml
ocamlfind ocamlopt -c $<
###Generated by "ocamldep *.ml *.mli" after building scanner.ml and parser.ml
ast.cmo :
ast.cmx :
codegen.cmo : ast.cmo
codegen.cmx : ast.cmx
philosophers_code.cmo : scanner.cmo parser.cmi codegen.cmo ast.cmo
philosophers_code.cmx : scanner.cmx parser.cmx codegen.cmx ast.cmx
parser.cmo : ast.cmo parser.cmi
parser.cmx : ast.cmx parser.cmi
scanner.cmom : parser.cmi
scanner.cmx : parser.cmx
parser.cmi : ast.cmo
###Remove all generated files
.PHONY : clean
clean:
ocamlbuild -clean
rm -rf *.cmx *.cmi *.cmo *.cmx *.o tests/*.o tests/*.c tests/*.out
rm -rf scanner.ml parser.ml parser.mli philosophers_code