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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 8C932BB83 for ; Tue, 15 Aug 2006 08:45:26 +0200 (CEST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k7F6jQcO026030 for ; Tue, 15 Aug 2006 08:45:26 +0200 Received: by nf-out-0910.google.com with SMTP id l37so218285nfc for ; Mon, 14 Aug 2006 23:45:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P6BqwDejH3c5kwAukCA+RO/N1luf5mR6WxpBmveKwTI2VPSyM0liBMmk3FpLYhhJhmit0uQB9YqxRNfDD2YU55NtCGHueYCdaSqNiFDxOAqjE+ehp+LVLfL5rDqX2vojETJX5NzFt8kSk8DuYxVYhRQHWyrYcRKm0WfuYKI+vhY= Received: by 10.49.43.2 with SMTP id v2mr853542nfj; Mon, 14 Aug 2006 23:45:23 -0700 (PDT) Received: by 10.78.158.8 with HTTP; Mon, 14 Aug 2006 23:45:23 -0700 (PDT) Message-ID: Date: Mon, 14 Aug 2006 23:45:23 -0700 From: "Nathaniel Gray" To: "Nathan Mishra Linger" Subject: Re: [Caml-list] can ocamldep order .cmo files? Cc: caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-j-chkmail-Score: MSGID : 44E16D86.000 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 44E16D86.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamldep:01 cmo:01 ocaml:01 haskell:01 cmo:01 ocamlc:01 ocamldep:01 dependencies:01 makefiles:01 ocamlc:01 ocaml:01 cheers:01 nathan:98 nathan:98 wrote:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 On 8/11/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. You might look at the OMake build system[1]. It's a concise and declarative like make, but with far superior dependency tracking and support for large projects. Support for OCaml is particularly strong, since it's the primary language used for OMake itself and most of the other projects in our lab. In particular, it takes care of keeping the .cmo files in proper order. Cheers, -n8 [1] -- >>>-- Nathaniel Gray -- Caltech Computer Science ------> >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->