Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 86 lines (65 sloc) 1.833 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
1bcaf57 @samoht New format for user provided files
samoht authored
25 _obuild/ocp-get-server/ocp-get-server.asm:
26 ocp-build ocp-get-server
27
28 _obuild/ocp-get/ocp-get.asm:
29 ocp-build ocp-get
30
31 ocp-get-server: _obuild/ocp-get-server/ocp-get-server.asm
aa0953c @samoht Fix Makefile
samoht authored
32 ln -s $^ ocp-get-server
33
34 ocp-get: _obuild/ocp-get/ocp-get.asm
35 ln -s $^ ocp-get
e951116 @samoht Fix ocp-get init
samoht authored
36
750fc50 @samoht Add a first build skeleton
samoht authored
37 compile: ./_obuild/unixrun clone
38 $(OCPBUILD) -init -scan -sanitize $(TARGET)
39
de73a75 @samoht Remove dependency towards pcre (which breaks on ubuntu)
samoht authored
40 clone: cudf extlib ocaml-re ocamlgraph dose
750fc50 @samoht Add a first build skeleton
samoht authored
41
42 cudf:
650d2ed @samoht Don't rely on INRIA git repo (which can be broken) to build the project
samoht authored
43 $(WGET) http://www.ocamlpro.com/pub/cudf.tar.bz2
44 tar xfvj cudf.tar.bz2
750fc50 @samoht Add a first build skeleton
samoht authored
45
46 extlib:
47 $(WGET) http://ocaml-extlib.googlecode.com/files/extlib-1.5.2.tar.gz
48 tar xfvz extlib-1.5.2.tar.gz
49 mv extlib-1.5.2 extlib
50
51 dose:
650d2ed @samoht Don't rely on INRIA git repo (which can be broken) to build the project
samoht authored
52 $(WGET) http://www.ocamlpro.com/pub/dose.tar.bz2
b1c2162 @samoht Fix Makefile
samoht authored
53 tar xvfj dose.tar.bz2
750fc50 @samoht Add a first build skeleton
samoht authored
54
de73a75 @samoht Remove dependency towards pcre (which breaks on ubuntu)
samoht authored
55 # ocaml-pcre:
56 # $(WGET) http://hg.ocaml.info/release/pcre-ocaml/archive/release-6.2.5.tar.gz
57 # tar xfvz release-6.2.5.tar.gz
58 # mv pcre-ocaml-release-6.2.5 ocaml-pcre
750fc50 @samoht Add a first build skeleton
samoht authored
59
60 ocamlgraph:
61 $(WGET) http://ocamlgraph.lri.fr/download/ocamlgraph-1.8.1.tar.gz
62 tar xvfz ocamlgraph-1.8.1.tar.gz
63 mv ocamlgraph-1.8.1 ocamlgraph
64
65 clean:
b1c2162 @samoht Fix Makefile
samoht authored
66 rm -rf _obuild
2c9a85c @samoht More file spliting.
samoht authored
67 rm -rf src/*.annot bat/*.annot
e951116 @samoht Fix ocp-get init
samoht authored
68 rm -f ocp-get ocp-get-server
b1c2162 @samoht Fix Makefile
samoht authored
69 rm -f ocp-build.*
750fc50 @samoht Add a first build skeleton
samoht authored
70
de73a75 @samoht Remove dependency towards pcre (which breaks on ubuntu)
samoht authored
71 ocaml-re:
b1c2162 @samoht Fix Makefile
samoht authored
72 $(WGET) http://www.ocamlpro.com/pub/ocaml-re.tar.bz2
73 tar xvfj ocaml-re.tar.bz2
b465e63 @samoht Fix clone target + add distclean target
samoht authored
74
75 distclean:
b1c2162 @samoht Fix Makefile
samoht authored
76 rm -f *.tar.gz *.tar.bz2
77 rm -rf dose cudf extlib ocaml-re ocamlgraph
7f510c5 @samoht Few makefile tweaks
samoht authored
78 rm -rf _obuild
79
80 .PHONY: tests
81 tests:
f8dc221 @samoht Add --root to ocp-get and ocp-get-server to change the default root path...
samoht authored
82 make -C tests
83
84 tests-runserver:
85 make -C tests runserver
Something went wrong with that request. Please try again.