From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA24927; Tue, 19 Oct 2004 16:50:25 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA25182 for ; Tue, 19 Oct 2004 16:50:24 +0200 (MET DST) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id i9JEoMj8010277 for ; Tue, 19 Oct 2004 16:50:24 +0200 Received: from c-24-3-154-200.client.comcast.net ([24.3.154.200]) by ux9.sp.cs.cmu.edu id aa21678; 19 Oct 2004 10:48 EDT Received: from ecc by stratocaster.home with local (Exim 4.34) id 1CJvHS-0000Ih-GK for caml-list@inria.fr; Tue, 19 Oct 2004 10:48:06 -0400 Date: Tue, 19 Oct 2004 10:48:06 -0400 To: caml-list Subject: Re: [Caml-list] make Message-ID: <20041019144806.GD984@localhost> Mail-Followup-To: caml-list References: <7f8e92aa041019054919917bef@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f8e92aa041019054919917bef@mail.gmail.com> User-Agent: Mutt/1.5.6+20040722i From: "Eric C. Cooper" X-Miltered: at concorde with ID 417529AE.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 ocamldep:01 dependencies:01 'standard':01 ocamlc:01 ocamldep:01 ocamlc:01 topological:01 cmo:01 cmo:01 cmxa:01 makefile:02 linking:02 0300,:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Oct 19, 2004 at 03:49:51PM +0300, Radu Grigore wrote: > What I'd love is an enhanced ocamldep that in addition to the > dependencies prints also a topologically sorted list of files, like > this: > [...] > This way I would be able to write a kind of 'standard' makefile: > > --- > include .depend > all: $(CMO_FILES) > ocamlc -o my_app $(CMO_FILES) > > depend: > ocamldep *.ml > .depend > > %.cmo: %.ml > ocamlc -c $< > --- This doesn't fully solve your problem, but you can build a library (.cma or .cmxa) of all the object files, and thereby avoid having to do the topological sort, since the linking phase does it for you. -- Eric C. Cooper e c c @ c m u . e d u ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners