-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOMakefile
49 lines (41 loc) · 865 Bytes
/
OMakefile
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
PROGRAM = eba
FILES[] =
error
utils
cilExtra
pP
uniq
opts
type
axioms
env
abs
structs
infer
lenv
pathTree
flow1Checker
checkUninitFlow1
flow2Checker
checkDLockFlow2
checkBhOnIrqFlow2
USE_OCAMLFIND = true
BYTE_ENABLED = true
NATIVE_ENABLED = true
OCAMLPACKS[] += batteries cil ocamlgraph smart_print cmdliner dolog
OCAMLFLAGS += -thread
OCamlLibrary(libeba, $(FILES))
OCAML_LIBS = libeba
OCamlProgram(eba, eba)
.DEFAULT: $(if $(BYTE_ENABLED), $(PROGRAM).run) \
$(if $(NATIVE_ENABLED), $(PROGRAM).opt)
# Cleanup
.PHONY: clean
clean:
rm -f \
$(filter-proper-targets $(glob $(addsuffix .*, $(FILES)))) \
libeba.cma libeba.cmxa libeba.a eba.cma eba.cmxa eba.a
.PHONY: test
test: eba.opt
export TESTDIR=`pwd`/test
cram test/heuristics.t test/path.t test/linux.t