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 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id D25CCBC69 for ; Wed, 28 Mar 2007 14:38:29 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2SCcSh4001105 for ; Wed, 28 Mar 2007 14:38:29 +0200 Received: by nz-out-0506.google.com with SMTP id l8so2157326nzf for ; Wed, 28 Mar 2007 05:38:28 -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=FLwLtttGYVq9czklQje6yVsd0omUwG4o8WleA8uPR+LaDmBy15HOBrWapvNJql2816mhWOmqDHk8zDpSZ7gwf9PbjxVTefeJjyNJmSAMznxdoU7SFCjH3VXTjdHURJ0abfjWhU30G/HGHJWOoMqFLJmJKGY37IVKB0vAQEesNlc= 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=YMbit3EWU/N7bt6VoSyyMteiiFH3yWUoyHRno3f/yFwFrmEyXglrA+pbG5FlFWB4p1OSZmedo/jnj8KU9CjNzaijuYGsSL7/D8ETw32RTyPGV9RuLaLv5l9pC+iQOnx9Es2soOs5ObAxrHwpwmsU9TdGODXiKuV4vqkb1Pl1NWI= Received: by 10.114.125.2 with SMTP id x2mr3687562wac.1175085507257; Wed, 28 Mar 2007 05:38:27 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Wed, 28 Mar 2007 05:38:27 -0700 (PDT) Message-ID: Date: Wed, 28 Mar 2007 14:38:27 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: [Caml-list] Producing a C wrapper with ocamlbuild or OMake Cc: "Caml List" In-Reply-To: <02DBCF0E-8CC6-44CC-B59D-31533A58C32A@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <026CA3D4-5A8B-4083-B429-DE5AEC418C0A@gmail.com> <02DBCF0E-8CC6-44CC-B59D-31533A58C32A@gmail.com> X-j-chkmail-Score: MSGID : 460A61C4.000 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 460A61C4.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; libasmrun:01 intern:01 nop:01 main':01 28,:98 2007,:98 cvs:01 wrote:01 wrote:01 caml-list:01 fib:01 library:03 variable:06 standard:07 definition:07 On 3/28/07, Joel Reymont wrote: > > On Mar 28, 2007, at 9:58 AM, Nicolas Pouillard wrote: > > > In fact you better should add the libasmrun definition inside the > > After_rules to not force something too soon... > > This is still foreign science to me. How would I do this and also why? Yep that's my bad to use that intern variable to the standard library, it will better safer one day. > Last but not least, how do I trigger the build? > > Do I just run ocamlbuild without a target? Nop there is no concept of default target In this example you can run `ocamlbuild main' assuming you have all sources files (fib.ml fibwrap.c main.c myocamlbuild.ml). PS: this example is in the CVS (in release310 branch but not yet propagated to the pubilc server). -- Nicolas Pouillard