[
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: | Sven <luther@d...> |
| Subject: | Re: [Caml-list] Output directory of .cmo / .cmx / .o |
On Wed, Nov 14, 2001 at 06:15:52PM +0000, Marcin 'Qrczak' Kowalczyk wrote:
> Running ocamlc -c dir/file.ml produces dir/file.cmo.
> Running ocamlopt -c dir/file.ml produces dir/file.{cmx,o}.
>
> Running ocaml{c,opt} -c dir/file.c produces file.o in the current
> directory. It's inconsistent.
>
> Is it possible to let the OCaml compiler let the C compiler put .o
> files resulting from .c files in the same directory as their sources
> if the current directory is different? -o applies only to executable
> or library. I can move files by hand but perhaps it can be done better.
Alternatively, just move them yourself afterward.
I personnaly, have my makefiles move all the object files into an Object
subdirectory, which leaves the source dir uncluttered.
If you are interrested, i could send you the corresponding rules.
Friendly,
Sven Luther
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr