From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 22DD2BC37 for ; Sat, 28 Nov 2009 17:15:25 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnMHAFLbEEtV2gB5aWdsb2JhbACER49rhH2CYw0KCQcViEKeFI9ggS+CLlQEiRM X-IronPort-AV: E=Sophos;i="4.47,306,1257116400"; d="scan'208";a="41003335" Received: from emailfrontal2.citycable.ch ([85.218.0.121]) by mail1-smtp-roc.national.inria.fr with SMTP; 28 Nov 2009 17:15:24 +0100 Received: from [192.168.0.12] (unknown [85.218.92.99]) (Authenticated sender: guillaume.yziquel@citycable.ch) by emailfrontal2.citycable.ch (Postfix) with ESMTPA id 9C5D3B1053F; Sat, 28 Nov 2009 17:15:15 +0100 (CET) Message-ID: <4B114C99.9000501@citycable.ch> Date: Sat, 28 Nov 2009 17:15:21 +0100 From: Guillaume Yziquel Reply-To: guillaume.yziquel@citycable.ch User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: caml-list@inria.fr Subject: Simple ocamlbuild example for C stubs? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; guillaume:01 guillaume:01 stubs:01 stubs:01 non-standard:01 wiki:01 cma:01 linking:02 inria:06 generic:08 quite:08 i'm:09 example:10 example:10 php:87 Hello. I'm trying to build a .cma with C stubs with ocamlbuild. Linking and includes are supposed to be set to non-standard directories. Is there a state-of-the-art, and *simple* example lying around? Is there an ocamlbuild plugin that is more generic than the one on the Wiki http://brion.inria.fr/gallium/index.php/Ocamlbuild_example_with_C_stubs which I unfortunately find quite obscure. All the best, -- Guillaume Yziquel http://yziquel.homelinux.org/