Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 79 lines (60 sloc) 1.683 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:
650d2ed @samoht Don't rely on INRIA git repo (which can be broken) to build the project
samoht authored
37 $(WGET) http://www.ocamlpro.com/pub/cudf.tar.bz2
38 tar xfvj cudf.tar.bz2
750fc50 @samoht Add a first build skeleton
samoht authored
39
40 extlib:
41 $(WGET) http://ocaml-extlib.googlecode.com/files/extlib-1.5.2.tar.gz
42 tar xfvz extlib-1.5.2.tar.gz
43 mv extlib-1.5.2 extlib
44
45 dose:
650d2ed @samoht Don't rely on INRIA git repo (which can be broken) to build the project
samoht authored
46 $(WGET) http://www.ocamlpro.com/pub/dose.tar.bz2
47 tar xvfz dose.tar.bz2
750fc50 @samoht Add a first build skeleton
samoht authored
48
de73a75 @samoht Remove dependency towards pcre (which breaks on ubuntu)
samoht authored
49 # ocaml-pcre:
50 # $(WGET) http://hg.ocaml.info/release/pcre-ocaml/archive/release-6.2.5.tar.gz
51 # tar xfvz release-6.2.5.tar.gz
52 # mv pcre-ocaml-release-6.2.5 ocaml-pcre
750fc50 @samoht Add a first build skeleton
samoht authored
53
54 ocamlgraph:
55 $(WGET) http://ocamlgraph.lri.fr/download/ocamlgraph-1.8.1.tar.gz
56 tar xvfz ocamlgraph-1.8.1.tar.gz
57 mv ocamlgraph-1.8.1 ocamlgraph
58
59 clean:
60 $(OCPBUILD) -clean
2c9a85c @samoht More file spliting.
samoht authored
61 rm -rf src/*.annot bat/*.annot
e951116 @samoht Fix ocp-get init
samoht authored
62 rm -f ocp-get ocp-get-server
750fc50 @samoht Add a first build skeleton
samoht authored
63
de73a75 @samoht Remove dependency towards pcre (which breaks on ubuntu)
samoht authored
64 ocaml-re:
650d2ed @samoht Don't rely on INRIA git repo (which can be broken) to build the project
samoht authored
65 $(WGET) http://www.ocamlpro.com/pub/ocaml-re.tar.gz
66 tar xcfj ocaml-re.tar.gz
b465e63 @samoht Fix clone target + add distclean target
samoht authored
67
68 distclean:
69 rm -f *.tar.gz
70 rm -rf dose cudf extlib ocaml-pcre ocamlgraph
7f510c5 @samoht Few makefile tweaks
samoht authored
71 rm -rf _obuild
72
73 .PHONY: tests
74 tests:
f8dc221 @samoht Add --root to ocp-get and ocp-get-server to change the default root p…
samoht authored
75 make -C tests
76
77 tests-runserver:
78 make -C tests runserver
Something went wrong with that request. Please try again.