forked from ocaml/opam
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
52 lines (40 loc) · 1.17 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
OCPBUILD ?= ./_obuild/unixrun ./boot/ocp-build.boot
WGET ?= wget
TARGET = ocp-get
.PHONY: all
all: ./_obuild/unixrun compile clone
@
scan: ./_obuild/unixrun
$(OCPBUILD) -scan
sanitize: ./_obuild/unixrun
$(OCPBUILD) -sanitize
byte: ./_obuild/unixrun
$(OCPBUILD) -byte
opt: ./_obuild/unixrun
$(OCPBUILD) -asm
./_obuild/unixrun:
mkdir -p ./_obuild
ocamlc -o ./_obuild/unixrun -make-runtime unix.cma
compile: ./_obuild/unixrun clone
$(OCPBUILD) -init -scan -sanitize $(TARGET)
clone: cudf extlib ocaml-pcre ocamlgraph
cudf:
git clone git://scm.gforge.inria.fr/mancoosi-tools/cudf.git
extlib:
$(WGET) http://ocaml-extlib.googlecode.com/files/extlib-1.5.2.tar.gz
tar xfvz extlib-1.5.2.tar.gz
mv extlib-1.5.2 extlib
dose:
git clone git://scm.gforge.inria.fr/mancoosi-tools/dose.git
ocaml-pcre:
$(WGET) http://hg.ocaml.info/release/pcre-ocaml/archive/release-6.2.5.tar.gz
tar xfvz release-6.2.5.tar.gz
mv pcre-ocaml-release-6.2.5 ocaml-pcre
ocamlgraph:
$(WGET) http://ocamlgraph.lri.fr/download/ocamlgraph-1.8.1.tar.gz
tar xvfz ocamlgraph-1.8.1.tar.gz
mv ocamlgraph-1.8.1 ocamlgraph
clean:
$(OCPBUILD) -clean
# ocaml-re:
# git clone https://github.com/avsm/ocaml-re