From: "Eric C. Cooper" <ecc@cmu.edu>
To: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] make
Date: Tue, 19 Oct 2004 10:48:06 -0400 [thread overview]
Message-ID: <20041019144806.GD984@localhost> (raw)
In-Reply-To: <7f8e92aa041019054919917bef@mail.gmail.com>
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
next prev parent reply other threads:[~2004-10-19 14:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 12:49 Radu Grigore
2004-10-19 13:02 ` Nicolas Cannasse
2004-10-20 0:28 ` skaller
2004-10-19 13:16 ` Julien Signoles
2004-10-19 13:35 ` Radu Grigore
2004-10-19 19:12 ` noweb/nuweb (was: Re: [Caml-list] make) David MENTRE
2004-10-20 5:08 ` Radu Grigore
2004-10-21 11:12 ` [Caml-list] ocamldsort and directories Richard Jones
2004-10-22 18:04 ` Dimitri Ara
2004-10-19 14:48 ` Eric C. Cooper [this message]
2004-10-19 23:23 ` [Caml-list] make skaller
2004-10-21 2:41 ` Aleksey Nogin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041019144806.GD984@localhost \
--to=ecc@cmu.edu \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox