-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (29 loc) · 875 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
#######################################################
### change these to point to the right paths / commands
#######################################################
# command to copy a link into a file
CP=cp -L
#PDFLATEX=pdflatex
##################################################################
### no changes needed for the following under normal circumstances
##################################################################
OCAMLBUILD=ocamlbuild
OPTIONS=-use-ocamlfind
PACKAGES=-pkgs ocaml-sat-solvers
SRC=src
MAIN=main
INCLUDES=-I $(SRC)
LIBS=
PARAMS=$(INCLUDES) $(LIBS) $(PACKAGES)
EXECUTABLE=cfganalyzer
all: native
byte:
$(OCAMLBUILD) $(PARAMS) $(SRC)/$(MAIN).byte
$(CP) $(MAIN).byte $(EXECUTABLE)
native:
$(OCAMLBUILD) $(PARAMS) $(SRC)/$(MAIN).native
$(CP) $(MAIN).native $(EXECUTABLE)
clean:
$(OCAMLBUILD) -clean
#doc: version
# make -C doc