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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 78F16BC4E for ; Wed, 30 Aug 2006 20:04:03 +0200 (CEST) Received: from pilet.ens-lyon.fr (pilet.ens-lyon.fr [140.77.167.16]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k7UI41st029084 for ; Wed, 30 Aug 2006 20:04:03 +0200 Received: from localhost (localhost [127.0.0.1]) by pilet.ens-lyon.fr (Postfix) with ESMTP id EC86A15B78B; Wed, 30 Aug 2006 20:03:58 +0200 (CEST) Received: from pilet.ens-lyon.fr ([127.0.0.1]) by localhost (pilet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04107-03; Wed, 30 Aug 2006 20:03:58 +0200 (CEST) Received: from [140.77.13.188] (unknown [140.77.13.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by pilet.ens-lyon.fr (Postfix) with ESMTP id 544E315B619; Wed, 30 Aug 2006 20:03:58 +0200 (CEST) Message-ID: <44F5D30D.2090206@ens-lyon.fr> Date: Wed, 30 Aug 2006 20:03:57 +0200 From: Jean-Baptiste Rouquier User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: nathan.mishralinger@gmail.com, caml-list@inria.fr Subject: Re: can ocamldep order .cmo files? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ens-lyon.fr X-Miltered: at concorde with ID 44F5D311.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ens-lyon:01 ocamldep:01 cmo:01 tsort:01 ocamldep:01 ocaml:01 haskell:01 cmo:01 ocamlc:01 dependencies:01 makefiles:01 ocamlc:01 nathan:98 nathan:98 wrote:01 For a tiny script (sed+tsort) that does only this, you might want to have a look at http://jb.rouquier.free.fr/programmation/ocamldep2moduleList.zip On 8/12/06, Nathan Mishra Linger wrote: > I'm a new OCaml user and quite a fan so far (most of my functional > programming experience has been in Haskell up to this point). > > I know that .cmo arguments to ocamlc must be in order of dependency. > I also know that ocamldep can detect such dependencies and spit them > out in a format that makefiles can include. > > But can ocamldep spit out the dependency ordering of a list of .cmo > files in such a way that these can be input to ocamlc? If not, it > seems like it would be a useful thing for ocamldep to be able to do > this. Or do people have other solutions to this problem. > > Nathan