This repository has been archived by the owner on Nov 28, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from djs55/add-manual-build
Fix build on OCaml 4.00.1
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
0.2 (16-Jul-2014) | ||
- Add manual build script for OCaml 4.00.1 | ||
|
||
0.1 (16-Jul-2014) | ||
- Initial version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ocamlfind ocamldep -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends | ||
ocamlfind ocamldep -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -modules test.ml > test.ml.depends | ||
ocamlfind ocamldep -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -modules test_impl.ml > test_impl.ml.depends | ||
ocamlfind ocamlc -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o test_impl.cmo test_impl.ml | ||
ocamlfind ocamlc -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o test.cmo test.ml | ||
ocamlfind ocamlc -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o main.cmo main.ml | ||
ocamlfind ocamlopt -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o test_impl.cmx test_impl.ml | ||
ocamlfind ocamlopt -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o test.cmx test.ml | ||
ocamlfind ocamlopt -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o main.cmx main.ml | ||
ocamlfind ocamlopt -g -linkpkg -dontlink unix -output-obj -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o test_impl.cmx test.cmx main.cmx -o main.native.o | ||
|
||
XEN_LIBDIR=$(ocamlfind query mirage-xen) | ||
ld -d -nostdlib -m elf_x86_64 -T ${XEN_LIBDIR}/mirage-x86_64.lds ${XEN_LIBDIR}/x86_64.o \ | ||
main.native.o ${XEN_LIBDIR}/libocaml.a ${XEN_LIBDIR}/libxen.a \ | ||
${XEN_LIBDIR}/libxencaml.a ${XEN_LIBDIR}/libdiet.a ${XEN_LIBDIR}/libm.a \ | ||
${XEN_LIBDIR}/longjmp.o -o mir-test.xen |