Version française
Home     About     Download     Resources     Contact us    
Browse thread
Producing a C wrapper with ocamlbuild or OMake
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Producing a C wrapper with ocamlbuild or OMake
On 3/28/07, Joel Reymont <joelr1@gmail.com> 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