From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 7F76C7F712 for ; Thu, 23 Jan 2014 15:48:04 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of rinderkn@caesar.elte.hu) identity=pra; client-ip=157.181.1.138; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rinderkn@caesar.elte.hu"; x-sender="rinderkn@caesar.elte.hu"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of rinderkn@caesar.elte.hu designates 157.181.1.138 as permitted sender) identity=mailfrom; client-ip=157.181.1.138; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rinderkn@caesar.elte.hu"; x-sender="rinderkn@caesar.elte.hu"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of postmaster@mx3.mail.elte.hu designates 157.181.1.138 as permitted sender) identity=helo; client-ip=157.181.1.138; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="rinderkn@caesar.elte.hu"; x-sender="postmaster@mx3.mail.elte.hu"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4BADYr4VKdtQGKnGdsb2JhbABbvQiDBYEQFg4BAQEBAQgLCQkUKIIlAQEBBHgRCwQBEwkWDwkDAgECAUUTCAEBiAHFbheOGG8WhCIEmCOVRg X-IPAS-Result: Ap4BADYr4VKdtQGKnGdsb2JhbABbvQiDBYEQFg4BAQEBAQgLCQkUKIIlAQEBBHgRCwQBEwkWDwkDAgECAUUTCAEBiAHFbheOGG8WhCIEmCOVRg X-IronPort-AV: E=Sophos;i="4.95,706,1384297200"; d="scan'208,217";a="45867986" Received: from mx3.mail.elte.hu ([157.181.1.138]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 23 Jan 2014 15:48:03 +0100 Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx3.mail.elte.hu with esmtp (Exim) id 1W6LZY-0003Gp-9v from for ; Thu, 23 Jan 2014 15:48:02 +0100 Received: (Authenticated sender: rinderkn) by mailbox1.caesar.elte.hu with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1W6LZW-0000FN-6G for caml-list@inria.fr; Thu, 23 Jan 2014 15:48:00 +0100 Message-ID: <52E12B95.6040405@caesar.elte.hu> Date: Thu, 23 Jan 2014 15:47:49 +0100 From: Christian Rinderknecht Reply-To: rinderkn@caesar.elte.hu Organization: =?ISO-8859-1?Q?E=F6tv=F6s_Lor=E1nd_University?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <52DF18CB.6000809@caesar.elte.hu> <52DF76A5.1020805@libertysurf.fr> <52E01A76.7050109@caesar.elte.hu> <20140123093518.GC20624@frosties> In-Reply-To: <20140123093518.GC20624@frosties> Content-Type: multipart/alternative; boundary="------------020709070209090801080509" X-ELTE-SpamScore: -7.8 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 3.0 X-ELTE-SpamCheck-Details: score=-7.8 required=5.9 tests=ALL_TRUSTED,AWL,BAYES_00,HTML_MESSAGE,L_AUTH,T_RP_MATCHES_RCVD autolearn=ham SpamAssassin version=3.3.2 -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -5.0 L_AUTH Caesar auth -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.2 HTML_MESSAGE BODY: HTML included in message -0.0 AWL AWL: From: address is in the auto white-list Subject: Re: [Caml-list] [ANN] Announcing yet another Makefile for OCaml This is a multi-part message in MIME format. --------------020709070209090801080509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 01/23/2014 10:35 AM, Goswin von Brederlow wrote: >> [...] >> OCamlMakefile vs my Makefile >> * Support for ocamlfind vs none > > No ocamlfind? That realy sucks. Anything non trivial will require > some extras, if only batteries, core or unix. You realy need support > for ocamlfind so adding libraries becomes easy. If you want to use ocamlfind as a driver to ocamldep, the compilers ocamlc and ocamlopt and the linkers, you can simply prefix the calls to these in the Makefile like so: instead of ${OCAMLC} .... write ocamlfind ${OCAMLC} ... Then use the tag files for .mli, .ml and for the two linkers (byte-code and native-code), to pass options specific to ocamlfind as if they were for ocamlc, ocamlopt etc. Adding libraries and performing queries should be done outside the Makefile. Hope this helps, Christian --------------020709070209090801080509 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 01/23/2014 10:35 AM, Goswin von Brederlow wrote:
>> [...]
>> OCamlMakefile vs my Makefile
>>   * Support for ocamlfind vs none
>
> No ocamlfind? That realy sucks. Anything non trivial will require
> some extras, if only batteries, core or unix. You realy need support
> for ocamlfind so adding libraries becomes easy.


If you want to use ocamlfind as a driver to ocamldep, the compilers
ocamlc and ocamlopt and the linkers, you can simply prefix the calls
to these in the Makefile like so:

instead of ${OCAMLC} ....
write      ocamlfind ${OCAMLC} ...

Then use the tag files for .mli, .ml and for the two linkers
(byte-code and native-code), to pass options specific to ocamlfind as
if they were for ocamlc, ocamlopt etc.

Adding libraries and performing queries should be done outside the
Makefile.

Hope this helps,

Christian

--------------020709070209090801080509--