From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 8DCB8BB83 for ; Wed, 23 Aug 2006 21:01:49 +0200 (CEST) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k7NJ1moS021642 for ; Wed, 23 Aug 2006 21:01:49 +0200 Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 5450CD9E7D2; Wed, 23 Aug 2006 15:01:41 -0400 (EDT) Received: from heartbeat2.internal ([10.202.2.161]) by frontend3.internal (MEProxy); Wed, 23 Aug 2006 15:01:42 -0400 X-Sasl-enc: L4/DmrP350M4x4HXnxbn0Swy3YkcrO4vZr7Ze+Dl0YMl 1156359702 Received: from [172.16.112.115] (burnham.ljcrf.edu [192.231.106.2]) by mail.messagingengine.com (Postfix) with ESMTP id D8D57E1B; Wed, 23 Aug 2006 15:01:41 -0400 (EDT) Date: Wed, 23 Aug 2006 12:01:25 -0700 (PDT) From: Martin Jambon X-X-Sender: martin@localhost To: Renald Buter Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Building projects written in OCaml In-Reply-To: <20060823152412.GA7453@infinite.fsw.leidenuniv.nl> Message-ID: References: <20060823152412.GA7453@infinite.fsw.leidenuniv.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-j-chkmail-Score: MSGID : 44ECA61D.000 on concorde : j-chkmail score : X : 0/20 1 X-Miltered: at concorde with ID 44ECA61D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 makefile:01 'make:01 ml':01 'make:01 test':01 ocaml:01 1977:98 2006,:98 wrote:01 compile:01 caml-list:01 jambon:01 jambon:01 compiling:02 On Wed, 23 Aug 2006, Renald Buter wrote: > Hello list, > > Coming from an Ant/Java world, I am usually working in projects that have the > following directory structure: > > project > |---src ("plain" source files) > |---test (unit testing) > > What would a Makefile (possibly using OCamlMakefile) or OMakefile look > like that would allow me to: > > 1. 'make XXX.ml' to compile XXX.ml into an object file > 2. 'make some-target' to build the executable some-target, depending on > given object files > 3. 'make test' to build the test suite, depending on object files in > the 'src' directory. > > Any help is much appreciated! You can start there: http://www.ocaml-tutorial.org/compiling_ocaml_projects Martin -- Martin Jambon, PhD http://martin.jambon.free.fr