-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 897 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
include ../../config.make
LIBS=-libs unix,str,z3,graph
DIRS=-I misc
IFLAGS=-lflags -I,$(OCAMLGRAPHHOME) \
-lflags -I,$(Z3HOME)/lib \
-lflags -I,$(Z3HOME)/ocaml
LFLAGS=-lflags -cc,g++ \
-lflags -cclib,-L$(OCAMLLIBHOME) \
-lflags -cclib,-L$(Z3HOME)/lib \
-lflags -cclib,-lz3 \
-lflags -cclib,-lstdc++ \
-lflags -cclib,-lz3stubs \
-lflags -cclib,-lcamlidl
CFLAGS=-cflags -dtypes,-annot \
-cflags -I,$(Z3HOME)/ocaml \
-cflags -I,$(OCAMLGRAPHHOME) \
-cflags -thread
OFLAGS=$(DIRS) $(IFLAGS) $(LFLAGS) $(CFLAGS)
all:
ln -sf ../misc
ocamlbuild -r $(LIBS) $(OFLAGS) -tags thread fixpoint.native
ocamlbuild -r $(OFLAGS) fix.cmxa
cp _build/fixpoint.native .
clean:
rm -rf *.byte *.native _build _log
fixtop:
ocamlbuild -r $(LIBS) $(OFLAGS) fixtop.native
horn:
ocamlbuild -r $(LIBS) $(OFLAGS) hornToInterproc.native