Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 76 lines (57 sloc) 1.624 kB
750fc50 @samoht Add a first build skeleton
samoht authored
1 OCPBUILD ?= ./_obuild/unixrun ./boot/ocp-build.boot
2 WGET ?= wget
4dc9186 @samoht Add a basic server implementation
samoht authored
3 TARGET = ocp-get ocp-get-server
750fc50 @samoht Add a first build skeleton
samoht authored
4
5 .PHONY: all
6
e951116 @samoht Fix ocp-get init
samoht authored
7 all: ./_obuild/unixrun compile clone link
750fc50 @samoht Add a first build skeleton
samoht authored
8 @
9
10 scan: ./_obuild/unixrun
11 $(OCPBUILD) -scan
12 sanitize: ./_obuild/unixrun
13 $(OCPBUILD) -sanitize
14 byte: ./_obuild/unixrun
15 $(OCPBUILD) -byte
16 opt: ./_obuild/unixrun
17 $(OCPBUILD) -asm
18 ./_obuild/unixrun:
19 mkdir -p ./_obuild
20 ocamlc -o ./_obuild/unixrun -make-runtime unix.cma
21
ae55cad @samoht Fix symbolic creation in Makefile
samoht authored
22 link: ocp-get ocp-get-server
23 @
24
25 ocp-get:
e951116 @samoht Fix ocp-get init
samoht authored
26 ln -s _obuild/ocp-get/ocp-get.asm ocp-get
ae55cad @samoht Fix symbolic creation in Makefile
samoht authored
27
28 ocp-get-server:
e951116 @samoht Fix ocp-get init
samoht authored
29 ln -s _obuild/ocp-get-server/ocp-get-server.asm ocp-get-server
30
750fc50 @samoht Add a first build skeleton
samoht authored
31 compile: ./_obuild/unixrun clone
32 $(OCPBUILD) -init -scan -sanitize $(TARGET)
33
de73a75 @samoht Remove dependency towards pcre (which breaks on ubuntu)
samoht authored
34 clone: cudf extlib ocaml-re ocamlgraph dose
750fc50 @samoht Add a first build skeleton
samoht authored
35
36 cudf:
37 git clone git://scm.gforge.inria.fr/mancoosi-tools/cudf.git
38
39 extlib:
40 $(WGET) http://ocaml-extlib.googlecode.com/files/extlib-1.5.2.tar.gz
41 tar xfvz extlib-1.5.2.tar.gz
42 mv extlib-1.5.2 extlib
43
44 dose:
45 git clone git://scm.gforge.inria.fr/mancoosi-tools/dose.git
46
de73a75 @samoht Remove dependency towards pcre (which breaks on ubuntu)
samoht authored
47 # ocaml-pcre:
48 # $(WGET) http://hg.ocaml.info/release/pcre-ocaml/archive/release-6.2.5.tar.gz
49 # tar xfvz release-6.2.5.tar.gz
50 # mv pcre-ocaml-release-6.2.5 ocaml-pcre
750fc50 @samoht Add a first build skeleton
samoht authored
51
52 ocamlgraph:
53 $(WGET) http://ocamlgraph.lri.fr/download/ocamlgraph-1.8.1.tar.gz
54 tar xvfz ocamlgraph-1.8.1.tar.gz
55 mv ocamlgraph-1.8.1 ocamlgraph
56
57 clean:
58 $(OCPBUILD) -clean
2c9a85c @samoht More file spliting.
samoht authored
59 rm -rf src/*.annot bat/*.annot
e951116 @samoht Fix ocp-get init
samoht authored
60 rm -f ocp-get ocp-get-server
750fc50 @samoht Add a first build skeleton
samoht authored
61
de73a75 @samoht Remove dependency towards pcre (which breaks on ubuntu)
samoht authored
62 ocaml-re:
63 git clone https://github.com/avsm/ocaml-re
b465e63 @samoht Fix clone target + add distclean target
samoht authored
64
65 distclean:
66 rm -f *.tar.gz
67 rm -rf dose cudf extlib ocaml-pcre ocamlgraph
7f510c5 @samoht Few makefile tweaks
samoht authored
68 rm -rf _obuild
69
70 .PHONY: tests
71 tests:
f8dc221 @samoht Add --root to ocp-get and ocp-get-server to change the default root p…
samoht authored
72 make -C tests
73
74 tests-runserver:
75 make -C tests runserver
Something went wrong with that request. Please try again.