Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Generating module lists automatically
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-08-18 (20:36)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Generating module lists automatically
On Mon, Aug 18, 2003 at 03:02:45PM -0400, Yaron Minsky wrote:
> Does anyone have a reasonable solution to the problem of automatically
> generating dependencies and topologically sorted module lists for
> executables?  omake seems to do a good job for managing dependencies
> between automatically, but I don't see any good way of generating a
> topologically sorted list of names automatically within omake.  Camlmake
> ( seems to be the right kind of thing, but
> does not appear to be maintained anymore.  I'm wondering if there are any
> other good options out there.

I may be missing the point of your email, but FWIW this is what I'm
using in my Makefiles now:

dep:    .depend 
depend: .depend 
        rm -f .depend 
        ocamldep $(OCAMLCINCS) *.mli *.ml > $@
ifeq ($(wildcard .depend),.depend) 
include .depend 
.PHONY: dep depend 

My object files are already sorted (by hand) so linking just works.


Richard Jones.
Merjis Ltd. - all your business data are belong to you.
MONOLITH is an advanced framework for writing web applications in C, easier
than using Perl & Java, much faster and smaller, reusable widget-based arch,
database-backed, discussion, chat, calendaring:

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: