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 JAA29630; Thu, 15 Nov 2001 09:55:24 +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 JAA29128 for ; Thu, 15 Nov 2001 09:55:24 +0100 (MET) Received: from dpt-info.u-strasbg.fr (dpt-info.u-strasbg.fr [130.79.44.193]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id fAF8tNH06703 for ; Thu, 15 Nov 2001 09:55:23 +0100 (MET) Received: (from luther@localhost) by dpt-info.u-strasbg.fr (8.9.3/8.9.3) id JAA22799; Thu, 15 Nov 2001 09:53:49 +0100 Date: Thu, 15 Nov 2001 09:53:49 +0100 From: Sven To: "Marcin 'Qrczak' Kowalczyk" Cc: caml-list@inria.fr Subject: Re: [Caml-list] Output directory of .cmo / .cmx / .o Message-ID: <20011115095349.A22672@dpt-info.u-strasbg.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from qrczak@knm.org.pl on Wed, Nov 14, 2001 at 06:15:52PM +0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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