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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id B4D777FB0A for ; Wed, 26 Nov 2014 22:13:12 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of kennethadammiller@gmail.com) identity=pra; client-ip=209.85.218.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="kennethadammiller@gmail.com"; x-sender="kennethadammiller@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of kennethadammiller@gmail.com designates 209.85.218.44 as permitted sender) identity=mailfrom; client-ip=209.85.218.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="kennethadammiller@gmail.com"; x-sender="kennethadammiller@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-oi0-f44.google.com) identity=helo; client-ip=209.85.218.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="kennethadammiller@gmail.com"; x-sender="postmaster@mail-oi0-f44.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar4CAFRBdlTRVdosm2dsb2JhbABbgkKBFlcEgwG0L5Buh1QHFgEBAQEBEQEBAQEBBgsLCRQuhBsRHQEbHgMSCQc3AiQBEQEFASI1iAgBAxINrGeDJT0xizaBboMMijUKGScNXIYBAQUOk2yBVQWMJIsoglSEYYF0ky0YKYVUKTCCSgEBAQ X-IPAS-Result: Ar4CAFRBdlTRVdosm2dsb2JhbABbgkKBFlcEgwG0L5Buh1QHFgEBAQEBEQEBAQEBBgsLCRQuhBsRHQEbHgMSCQc3AiQBEQEFASI1iAgBAxINrGeDJT0xizaBboMMijUKGScNXIYBAQUOk2yBVQWMJIsoglSEYYF0ky0YKYVUKTCCSgEBAQ X-IronPort-AV: E=Sophos;i="5.07,464,1413237600"; d="scan'208";a="109759256" Received: from mail-oi0-f44.google.com ([209.85.218.44]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 26 Nov 2014 22:13:11 +0100 Received: by mail-oi0-f44.google.com with SMTP id e131so2606313oig.3 for ; Wed, 26 Nov 2014 13:13:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6Y8HyDVnLUqxeLakGmxHh6WlElzbrtB5m8u+MaJBx3s=; b=zR+MMpnui9KSK3dEMSGmyB0p0zCDyh7mPJDu0reES9Li1FIfvdjdL8gEKDNqKM+noW uAt6/x2a8tGS/qpA6BaH3akX5yX7S+jJkQWpA8RbjZHb7w0qxMgGU8r4lv+494Rc+X9g 5Qexqrn4nRJDgH0rwTjFrasQ5wGBYeG2V5sz5eEinEZmx/jjwcKozfKfyLpVmV2gkOKA WjoufimLmbHTc7903+Czd2ZChtE4uidQrpADwSiyL+39gLr9AfnRY3DsDE4RtKjeLLjU MF8xzPrl7QvB0txwzD8fc6Ob/VrrQdu4G3hVayXLncp/umA3ONVL2rpdI8xDlV+2wznF 57FA== MIME-Version: 1.0 X-Received: by 10.182.199.106 with SMTP id jj10mr21643059obc.27.1417036390747; Wed, 26 Nov 2014 13:13:10 -0800 (PST) Received: by 10.182.197.1 with HTTP; Wed, 26 Nov 2014 13:13:10 -0800 (PST) Date: Wed, 26 Nov 2014 16:13:10 -0500 Message-ID: From: Kenneth Adam Miller To: caml users Content-Type: multipart/alternative; boundary=e89a8ff1ca2ab454f70508c97e93 Subject: [Caml-list] OCamlMakefile troubles - change target in subproject --e89a8ff1ca2ab454f70508c97e93 Content-Type: text/plain; charset=UTF-8 This is somewhat of a crosspost, so I suppose I'll go ahead and link this, but I'm having trouble figuring out how to get make to produce the right command when I'm using ocamlmakefile http://stackoverflow.com/questions/27156419/how-to-use-ocamlmakefile-to-generate-a-library-consumed-by-subproject basically, I want to define a subproject using make's "define", and I want that to be compiled as a library, a byte code library if the target is bc and a native code library if the target is nc. With ocamlmakefile, if you want to make a subproject you use a define, as in the link; all I want to do is change the target: make nc => make ncl make bc => make bcl *just* within the confines of the subproject. Meaning, some subprojects should be compiled as libraries, others just as normal binaries in the makefile, in order that it doesn't have to be attempted multiple times. How do I achieve that with subprojects? --e89a8ff1ca2ab454f70508c97e93 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is somewhat of a crosspost, so I suppose I'll go ahead and link t= his, but I'm having trouble figuring out how to get make to produce the= right command when I'm using ocamlmakefile

http://stackoverflow.com/questions/27156419/how-to-use-= ocamlmakefile-to-generate-a-library-consumed-by-subproject

basically, I want to define a subproject using make&= #39;s "define", and I want that to be compiled as a library, a by= te code library if the target is bc and a native code library if the target= is nc.
With ocam= lmakefile, if you want to make a subproject you use a define, as in the lin= k; all I want to do is change the target:

make nc =3D> make ncl
make bc =3D> make bcl

*just* within the confines= of the subproject. Meaning, some subprojects should be compiled as librari= es, others just as normal binaries in the makefile, in order that it doesn&= #39;t have to be attempted multiple times. How do I achieve that with subpr= ojects?=C2=A0
--e89a8ff1ca2ab454f70508c97e93--