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 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 66CF3BC69 for ; Wed, 28 Mar 2007 10:40:31 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2S8eUUa007972 for ; Wed, 28 Mar 2007 10:40:31 +0200 Received: by ug-out-1314.google.com with SMTP id k3so163376ugf for ; Wed, 28 Mar 2007 01:40:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=l9qMTMBbn/TZF+t4tMyd8m71NSaoHNV3Xcoz47AZZLpDMrdbuz3iEIuI1lbRxkuRRyE5A5DHacE9Z1eaUgeKkyA+PiS5HcZ+G52vrk+vkZzGfHD6riC4B9DkiAA82qAYwED2u1jh1/8h0ccJIgi8i2/GaMouj9wm5y2xS6PKiCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=m9CdoGzIBvnzpgZpwS4KngVSBdS1f+uYSNNe1f+xYD7FcY1w0HWssPb85IL+yikaIRIN1XrgiRl/elHoi8tmbDevGyEh+xNVIelq0a/+1hkbtuxiRiRuPipojqqAsBBKXTYQYtb7ZIXAnjq8X9eMJTRlm0mW7ZvcQB+819/v8Ak= Received: by 10.66.244.11 with SMTP id r11mr498206ugh.1175071230508; Wed, 28 Mar 2007 01:40:30 -0700 (PDT) Received: from ?192.168.1.34? ( [88.7.141.133]) by mx.google.com with ESMTP id 30sm600246ugf.2007.03.28.01.40.29; Wed, 28 Mar 2007 01:40:29 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Aleksey Nogin Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Example OMakefile to package OCaml code as a C library Date: Wed, 28 Mar 2007 09:40:26 +0100 To: Caml List X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 460A29FE.000 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 460A29FE.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 ocamlopt:01 -output-obj:01 ocamlopt:01 usr:01 lib:01 libasmrun:01 fib:01 i'm:09 example:10 example:10 package:14 package:14 does:14 Does anyone have an example OMakefile that can be used to package OCaml code as a C library? This is along the lines of what I'm trying to accomplish: 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 Thanks, Joel -- http://wagerlabs.com/