Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 62 lines (46 sloc) 1.111 kb
750fc50 Thomas Gazagnaire Add a first build skeleton
samoht authored
1 OCPBUILD ?= ./_obuild/unixrun ./boot/ocp-build.boot
cef3112 Çagdas Bozman Moved external source in src_ext/
cago authored
2 OCAMLC=ocamlc
3 SRC_EXT=src_ext
7b79862 Anil Madhavapeddy select ftp by default on Darwin, as wget isn't present by default
avsm authored
4
ac99a15 Thomas Gazagnaire More WIP ...
samoht authored
5 TARGET = opam
750fc50 Thomas Gazagnaire Add a first build skeleton
samoht authored
6
7 .PHONY: all
8
7621c69 Thomas Gazagnaire As the bootstrap doesn't work yet, still fetch the dependencies manually
samoht authored
9 all: ./_obuild/unixrun compile link clone
750fc50 Thomas Gazagnaire Add a first build skeleton
samoht authored
10 @
11
12 scan: ./_obuild/unixrun
13 $(OCPBUILD) -scan
14 sanitize: ./_obuild/unixrun
15 $(OCPBUILD) -sanitize
16 byte: ./_obuild/unixrun
17 $(OCPBUILD) -byte
18 opt: ./_obuild/unixrun
19 $(OCPBUILD) -asm
20 ./_obuild/unixrun:
21 mkdir -p ./_obuild
cef3112 Çagdas Bozman Moved external source in src_ext/
cago authored
22 $(OCAMLC) -o ./_obuild/unixrun -make-runtime unix.cma str.cma
9948172 Thomas Gazagnaire add str.cma to unixrun (useful to bootstrap ocp-get, as dose and cudf ar...
samoht authored
23
ac99a15 Thomas Gazagnaire More WIP ...
samoht authored
24 bootstrap: _obuild/unixrun _obuild/opam/opam.byte
25 rm -f boot/opam.boot
26 ocp-bytehack -static _obuild/opam/opam.byte -o boot/opam.boot
750fc50 Thomas Gazagnaire Add a first build skeleton
samoht authored
27
ac99a15 Thomas Gazagnaire More WIP ...
samoht authored
28 link: opam
ae55cad Thomas Gazagnaire Fix symbolic creation in Makefile
samoht authored
29 @
30
ac99a15 Thomas Gazagnaire More WIP ...
samoht authored
31 _obuild/opam/opam.asm _obuild/opam/opam.byte:
32 $(OCPBUILD) opam
1bcaf57 Thomas Gazagnaire New format for user provided files
samoht authored
33
ac99a15 Thomas Gazagnaire More WIP ...
samoht authored
34 opam: _obuild/opam/opam.asm
35 ln -s $^ opam
e951116 Thomas Gazagnaire Fix ocp-get init
samoht authored
36
7621c69 Thomas Gazagnaire As the bootstrap doesn't work yet, still fetch the dependencies manually
samoht authored
37 compile: ./_obuild/unixrun clone
750fc50 Thomas Gazagnaire Add a first build skeleton
samoht authored
38 $(OCPBUILD) -init -scan -sanitize $(TARGET)
39
40
cef3112 Çagdas Bozman Moved external source in src_ext/
cago authored
41 clone:
42 $(MAKE) -C $(SRC_EXT)
750fc50 Thomas Gazagnaire Add a first build skeleton
samoht authored
43
44 clean:
b1c2162 Thomas Gazagnaire Fix Makefile
samoht authored
45 rm -rf _obuild
2c9a85c Thomas Gazagnaire More file spliting.
samoht authored
46 rm -rf src/*.annot bat/*.annot
ac99a15 Thomas Gazagnaire More WIP ...
samoht authored
47 rm -f opam
b1c2162 Thomas Gazagnaire Fix Makefile
samoht authored
48 rm -f ocp-build.*
cef3112 Çagdas Bozman Moved external source in src_ext/
cago authored
49 $(MAKE) -C $(SRC_EXT) clean
750fc50 Thomas Gazagnaire Add a first build skeleton
samoht authored
50
cef3112 Çagdas Bozman Moved external source in src_ext/
cago authored
51 distclean: clean
b1c2162 Thomas Gazagnaire Fix Makefile
samoht authored
52 rm -f *.tar.gz *.tar.bz2
cef3112 Çagdas Bozman Moved external source in src_ext/
cago authored
53 rm -rf _obuild _build
54 $(MAKE) -C $(SRC_EXT) distclean
7f510c5 Thomas Gazagnaire Few makefile tweaks
samoht authored
55
56 .PHONY: tests
57 tests:
cef3112 Çagdas Bozman Moved external source in src_ext/
cago authored
58 $(MAKE) -C tests
f8dc221 Thomas Gazagnaire Add --root to ocp-get and ocp-get-server to change the default root path...
samoht authored
59
60 tests-runserver:
cef3112 Çagdas Bozman Moved external source in src_ext/
cago authored
61 $(MAKE) -C tests runserver
Something went wrong with that request. Please try again.