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=1.4 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id E6656BBC4 for ; Sun, 8 Mar 2009 01:36:45 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am4CAIOhsknRVdqpjWdsb2JhbACUYz8BAQEBCQkKCQ8FrVSBB48IAQMBA4QCBg X-IronPort-AV: E=Sophos;i="4.38,321,1233529200"; d="scan'208";a="22204645" Received: from mail-bw0-f169.google.com ([209.85.218.169]) by mail2-smtp-roc.national.inria.fr with ESMTP; 08 Mar 2009 01:36:45 +0100 Received: by bwz17 with SMTP id 17so990430bwz.27 for ; Sat, 07 Mar 2009 16:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=+Va5Vnf/xh7DF9bFwLh7eisemS81WlIdNOky30B4VqM=; b=B1v0IgGRHC7yUwZ56h0Bws/TpbFRUTz6csrXAnaq2uCcFqHKo5qFAzDztQLrNFprsH 46RTSEzLSbh6SuclqGMDT6YFQIuilt2Ebr19G6XPL1i2AoxFB9si1CkXp5RkHU5qy3RB Wc0JN8IHEnq6W9F21IEuqUwrG7nHEeTDVo2rw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Vgnbxoua70A4dRFbgNfW2NvwEYW6YCk0GdB0QTXp/BDAnNgr6vlVMYycjqLM0VADOW PrTVSOuT/6lnK8GfrApkdbGLoyKuup4Ny1UYCxT++wqF2wQnIAj+wMoukSeCZ7VfA6ti rd/hGPxD8hrhiV06cKqwj9VLu/uUh7O2EsELM= MIME-Version: 1.0 Received: by 10.86.66.19 with SMTP id o19mr2985020fga.31.1236472605111; Sat, 07 Mar 2009 16:36:45 -0800 (PST) Date: Sun, 8 Mar 2009 00:36:45 +0000 Message-ID: Subject: How to compile project with sub directories (using OcamlMakefile) From: Conglun Yao To: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; camlers:01 lib:01 lib:01 makefile:01 makefile:01 makefiles:01 .....:98 02.:98 03.:98 compile:01 cma:01 cma:01 face:97 suggestion:03 library:03 Dear camlers, I've been stuck by this problem for few days, and can't find the answer. I built a project with several sub directories, like lib01, lib02 and lib03, and create a Makefile in each directory. In the top level, I have a Makefile like : all: @cd lib01 && make all @cd lib02&& make all @cd lib03 && make all Makefile in lib01 .. lib03: OCAMLMAKEFILE = ../OCamlMakefile SOURCES = ..... library files RESULT = lib01 .PHONY: all all: bcl ncl include $(OCAMLMAKEFILE) Using these Makefiles, lib01.cma, lib02.cma, lib03.cma are created. Now I face the problem, how to install these *.cma using OcamlMakefile, and is it possible to create a single package including all these cmas. Any suggestion will be appreciated! Conglun