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 UAA03019; Sat, 16 Feb 2002 20:23:21 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA03633 for ; Sat, 16 Feb 2002 20:23:20 +0100 (MET) Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g1GJNJ515967 for ; Sat, 16 Feb 2002 20:23:19 +0100 (MET) Received: from mel-rta6.wanadoo.fr (193.252.19.222) by mel-rto2.wanadoo.fr; 16 Feb 2002 20:23:19 +0100 Received: from warp (80.13.194.141) by mel-rta6.wanadoo.fr; 16 Feb 2002 20:23:04 +0100 Message-ID: <000501c1b71f$2f3d24d0$ba00a8c0@warp> From: "Warp" To: "OCaml" Subject: [Caml-list] CMA depend Date: Fri, 15 Feb 2002 21:05:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Usually, dependencies are between cmo / cmi, but you can also build a cma by using : > ocamlc -a file.ml -o file.cma What about dependencies between this cma file and others ? The problems here are that : - a cma can be obtained from more than one ml - target dependencies can be either cmo cmi OR other cma's ( when using dynlink ). I'm actually running a project where I have lots of modules - all dynlinked and built with a single ML file. Thus are called 'plugins'. I could have first compile ml to cmo and then cmo to cma , but that does not sound very reasonable. So I patched the ocamldep tool, adding : + print_dependencies (basename ^ ".cma") byt_deps; on line 405. Now it works fine, but I'm not sure that's the best way to do it. Any other idea ? BTW, the "-native" ocamldep flag can have some use, but what about a "-bytecode" flag ? Warp ------------------- 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