From: malc <malc@pulsesoft.com>
To: "Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Output directory of .cmo / .cmx / .o
Date: Thu, 15 Nov 2001 01:35:10 +0300 (MSK) [thread overview]
Message-ID: <Pine.LNX.4.21.0111150133400.7077-100000@oyster> (raw)
In-Reply-To: <slrn9v5d6o.46d.qrczak@qrnik.zagroda>
On Wed, 14 Nov 2001, 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.
ocaml[c|opt] -ccopt '-o dir/file.o' file.c
--
mailto:malc@pulsesoft.com
-------------------
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
next prev parent reply other threads:[~2001-11-14 22:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-14 18:15 Marcin 'Qrczak' Kowalczyk
2001-11-14 22:35 ` malc [this message]
2001-11-15 8:53 ` Sven
[not found] <9surso$q00$1@qrnik.zagroda>
2001-11-16 7:13 ` Marcin 'Qrczak' Kowalczyk
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=Pine.LNX.4.21.0111150133400.7077-100000@oyster \
--to=malc@pulsesoft.com \
--cc=caml-list@inria.fr \
--cc=qrczak@knm.org.pl \
/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