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.0 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 B517DBC69 for ; Wed, 28 Mar 2007 01:10:45 +0200 (CEST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2RNAj1I024928 for ; Wed, 28 Mar 2007 01:10:45 +0200 Received: by nf-out-0910.google.com with SMTP id a25so3167436nfc for ; Tue, 27 Mar 2007 16:10:45 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=e3mkvjeufK1cdMmQW0pZ6AiQ1YGIpBxA+1thObjoIVfPSdQiIqiH34Tl2xZXWhNrNGBfMrevRsgl0yCCtyndkV/bKU5HLtxIlMxFv7RF0fMjwuqRmlAkPa9WW0p3h6CkWg1srrPoWqxWlHnKU/nw5Nfz9hgwqY4vYmNelxXLWNw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=XSw410Q0v4VqNVeEk5Jj5xFUwzbKYDqllp+UlEaCaips+IgVJN/0JklzQrW+1yFd5iNvZmL4gmKkjMxWKqidxtb5oahJjXYUgThKNUQBhRiZpW0IDsk+jtfKIanlhZ4E02OtU0t3OerQvbW+sniWEgf11YrKY5IpFnoNI0K211s= Received: by 10.82.178.11 with SMTP id a11mr17265309buf.1175037044774; Tue, 27 Mar 2007 16:10:44 -0700 (PDT) Received: from ?192.168.1.34? ( [88.7.141.133]) by mx.google.com with ESMTP id n22sm20119835nfc.2007.03.27.16.10.41; Tue, 27 Mar 2007 16:10:44 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <026CA3D4-5A8B-4083-B429-DE5AEC418C0A@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Caml List From: Joel Reymont Subject: Producing a C wrapper with ocamlbuild or OMake Date: Wed, 28 Mar 2007 00:10:35 +0100 X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 4609A475.001 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 4609A475.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocamlopt:01 -output-obj:01 ocamlopt:01 usr:01 lib:01 ocaml:01 libasmrun:01 fib:01 library:03 i'm:09 i'm:09 wrapper:10 folks:11 advance:15 Folks, I'm trying to produce a C library from my OCaml code. I found these instructions on the net: ocamlopt -output-obj -o fibcaml.o fib.ml ocamlopt -c fibwrap.c cp /usr/local/lib/ocaml/libasmrun.a libfib.a ar r libfib.a fibcaml.o fibwrap.o How would I accomplish the same with ocamlbuild, which I'm using now, or with OMake? Thanks in advance, Joel -- http://wagerlabs.com/