-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 856 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
# Make sure ocamlbuild can find opam-managed packages: first run
#
# eval `opam config env`
# Easiest way to build: using ocamlbuild, which in turn uses ocamlfind
# See http://caml.inria.fr/pub/docs/manual-ocaml/comp.html for suppressed errors
# 44 & 45 In particular suppressed -- no errors, constantly filled up warning reports
stop:
corebuild -use-ocamlfind -pkgs llvm,llvm.analysis \
-cflags -w,+a-4-44-45 -I src/ stop.native
# "make clean" removes all generated files
.PHONY : clean
clean :
corebuild -clean
rm -rf *.diff stop scanner.ml parser.ml parser.mli
rm -rf *.cmx *.cmi *.cmo *.cmx *.o *.ll *.out *.log *.diff *.output
.PHONY : clean_tests
clean_tests :
rm -f *.ll *.out *.log *.diff *.s
.PHONY : parser
parser :
ocamlyacc -v src/parser.mly
.PHONY : clean_parser
clean_parser:
rm src/parser.output src/parser.ml src/parser.mli