Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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
> (http://www.davidb.org/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 
 
.depend: 
        rm -f .depend 
        ocamldep $(OCAMLCINCS) *.mli *.ml > $@
 
ifeq ($(wildcard .depend),.depend) 
include .depend 
endif 
 
.PHONY: dep depend 

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

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - 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:
http://www.annexia.org/freeware/monolith/

-------------------
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