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 OAA02379; Wed, 14 Apr 2004 14:56:15 +0200 (MET DST) 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 OAA01421 for ; Wed, 14 Apr 2004 14:56:14 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from mwinf0103.wanadoo.fr (smtp1.wanadoo.fr [193.252.22.30]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3ECuDYM023743 for ; Wed, 14 Apr 2004 14:56:13 +0200 Received: from morgana (ARennes-303-1-25-155.w81-53.abo.wanadoo.fr [81.53.41.155]) by mwinf0103.wanadoo.fr (SMTP Server) with ESMTP id 085AB1BFC377; Wed, 14 Apr 2004 14:56:13 +0200 (CEST) Received: from david by morgana with local (Exim 4.30) id 1BDjw2-00011Q-6K; Wed, 14 Apr 2004 14:56:10 +0200 To: Cezary Kaliszyk Cc: caml-list@inria.fr Subject: Re: [Caml-list] Intelligent handling of dependencies in complex ocaml projects References: <20040414123026.GA25996@zodiac.mimuw.edu.pl> From: David MENTRE Organization: none Date: Wed, 14 Apr 2004 14:56:09 +0200 In-Reply-To: <20040414123026.GA25996@zodiac.mimuw.edu.pl> (Cezary Kaliszyk's message of "Wed, 14 Apr 2004 14:30:26 +0200") Message-ID: <87ad1ewweu.fsf@linux-france.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 dependencies:01 dmentre:01 cezary:01 cezary:01 kaliszyk:01 zodiac:01 ocamldep:01 ocamldep:01 flags:01 -include:01 dependencies:01 dmentre:01 ocaml:01 command:98 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 326 Hello Cezary, Cezary Kaliszyk writes: > Ocamldep is insufficient becouse it requires providing all > source files (from all directories) in command line. > > Different subprojects depend on different external libraries. These > libraries may require different linkingflags. Some of them are > contradictory. So I can't call ocamldep like > ocamldep `find . -name "*.ml"` > because it requires all those flags together. Have you considered calling several times ocamldep (from your root directory), each time with the specific options, and then using the "-include" directive of make to import them in the main Makefile? I'm using a similar approach to generate dependencies in two successive phases. I hope it helps, Yours, david -- David Mentré ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners