From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA23832; Wed, 14 Nov 2001 23:37:19 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA17490 for ; Wed, 14 Nov 2001 23:37:08 +0100 (MET) Received: from comtv.ru (mail.comtv.ru [217.10.32.4]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id fAEMb2L27755 for ; Wed, 14 Nov 2001 23:37:07 +0100 (MET) Received: from [10.2.64.72] (HELO oyster2) by comtv.ru (CommuniGate Pro SMTP 3.4.7) with ESMTP id 1145153; Thu, 15 Nov 2001 01:37:01 +0300 Date: Thu, 15 Nov 2001 01:35:10 +0300 (MSK) From: malc X-Sender: malc@oyster To: "Marcin 'Qrczak' Kowalczyk" cc: caml-list@inria.fr Subject: Re: [Caml-list] Output directory of .cmo / .cmx / .o In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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