English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
beta-test of OCaml 3.10.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-17 (17:54)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] beta-test of OCaml 3.10.0
On 3/17/07, Peter Halacsy <peter@halacsy.com> wrote:
> On Mar 7, 2007, at 2:10 PM, Xavier Leroy wrote:
> - A new tool: ocamlbuild, a compilation manager for OCaml projects.
> Hi,
> I've downloaded and succesfuly compiled and installed 3.10 (on Intel MacBook
> Pro). Ocamlbuild is a great tool!
> I only wonder how I can build a cmxa file from several ml files. Should I
> define a custom target or something like that?

Just write a .mllib file with the contents of your library.

$ cat foo.mllib

$ ocamlbuild foo.cma foo.cmxa

If you have a main module (Foo) and want a library from it, it will
make a library with the sorted transitive closure from Foo.

$ ocamlbuild foo.cma foo.cmxa

Nicolas Pouillard