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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 69856BB83 for ; Wed, 23 Aug 2006 17:24:22 +0200 (CEST) Received: from infinite.fsw.leidenuniv.nl ([132.229.67.31]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k7NFOHba002111 for ; Wed, 23 Aug 2006 17:24:22 +0200 Received: by infinite.fsw.leidenuniv.nl (Postfix, from userid 1000) id 8E4AB1C249; Wed, 23 Aug 2006 17:24:13 +0200 (CEST) Date: Wed, 23 Aug 2006 17:24:12 +0200 From: Renald Buter To: caml-list@yquem.inria.fr Subject: Building projects written in OCaml Message-ID: <20060823152412.GA7453@infinite.fsw.leidenuniv.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Disclaimer: Adaptive enterprising User-Agent: Mutt/1.5.11 X-Miltered: at nez-perce with ID 44EC7322.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 compile:01 executable:03 unit:03 structure:05 written:07 file:08 object:09 object:09 depending:09 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! With kind regards, Renald