Browse thread
[Caml-list] make
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Eric C. Cooper <ecc@c...> |
| Subject: | Re: [Caml-list] make |
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