From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 0AD31BC0A for ; Sat, 17 Mar 2007 18:54:25 +0100 (CET) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.176]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2HHsOPJ026537 for ; Sat, 17 Mar 2007 18:54:24 +0100 Received: by ik-out-1112.google.com with SMTP id c29so676732ika for ; Sat, 17 Mar 2007 10:54:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Qax3zigaCQ+iga6kz/Msh8pyMpeEGU4Yg1PlaCTs2Gm5lnEEbVzgfU5rJXauFderdHUMRDfE41QXR2OaS/6jWgCyT8oKp5dD+4Tdo/t6aCRAgki4aYpwOzV8tcjgbkhirvHzQe8dExU+llm7E13l9qIk4aZEvS3ym9NXfxdND40= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ma5hB6T4cL0fgUGjP55ZmnNfOT1Ky9qdBx+JCnJCl22lPY2guF7+p1uh+IDvM+Wnvd6vrc5igb+msrSOCQS6W+yAxtdTsvmYt2LcCpzlruaTHeV0HOW6d6t5EJhmYRHbRoFvgLhFRFiv8gfSWjVL15KItsiYxVDQQKz4WtX9PYw= Received: by 10.70.113.15 with SMTP id l15mr5343719wxc.1174154063868; Sat, 17 Mar 2007 10:54:23 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Sat, 17 Mar 2007 10:54:23 -0700 (PDT) Message-ID: Date: Sat, 17 Mar 2007 18:54:23 +0100 From: "Nicolas Pouillard" To: "Peter Halacsy" Subject: Re: [Caml-list] beta-test of OCaml 3.10.0 Cc: "Caml List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45EEB9CE.9080405@inria.fr> X-j-chkmail-Score: MSGID : 45FC2B50.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45FC2B50.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 compilation:01 ocaml:01 cmxa:01 foo:01 baz:01 foo:01 cmxa:01 2007,:98 wrote:01 wrote:01 caml-list:01 cma:01 cma:01 define:01 On 3/17/07, Peter Halacsy 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 Bar Baz $ 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