From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 6 22:33:04 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8BE0D2F7; Wed, 6 Nov 2013 22:33:04 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com [IPv6:2a00:1450:4010:c04::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E0698244B; Wed, 6 Nov 2013 22:33:03 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id c11so267289lbj.17 for ; Wed, 06 Nov 2013 14:33:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=y9SVNLAQWH4rVN0fk+Vb4ili5PSu0Q7qaj+wpz5G718=; b=JdOIueE2nATcjHSkslxyHYs45RM6sMwTSa4kFHsjhf779+eMBEC4lEMGc7NEkwyh/3 JTmEc2YkeEan4Ze8yIdOEQXRrBolUn4aQblaGicXkW5MNMA/gCnUmG3ejE8qLuIjIGHm b+q+eJfsLpP9eB1sSNbLcx7PVTbvotEKFO9WRsJjmpWbFja/NwFjHfW0PzlBokacCS/x tZYolItclEqWr9Z/CAyWjcJR3FTmQAfkaqMRv+ikSWl5HWxW2UfjjjgnukRfgaagSzDO RZQo01O8eNPjvqxuFdOu8L3BGEYu4fqhxJfoPtozuuN2EY8gZ6Yk8FoXwAOKu3JaTx8U DFSg== MIME-Version: 1.0 X-Received: by 10.152.184.198 with SMTP id ew6mr3995777lac.34.1383777181851; Wed, 06 Nov 2013 14:33:01 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.23.35 with HTTP; Wed, 6 Nov 2013 14:33:01 -0800 (PST) In-Reply-To: <20131106222531.GF91063@lor.one-eyed-alien.net> References: <20131106164526.GV11443@kiwi.coupleofllamas.com> <20131106222531.GF91063@lor.one-eyed-alien.net> Date: Wed, 6 Nov 2013 14:33:01 -0800 X-Google-Sender-Auth: asQITtxhl5nIgUNQxNlJ8bkXMUg Message-ID: Subject: Re: Using bsd.prog.mk in a project with multiple binaries From: Luigi Rizzo To: Brooks Davis Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2013 22:33:04 -0000 On Wed, Nov 6, 2013 at 2:25 PM, Brooks Davis wrote: > On Wed, Nov 06, 2013 at 08:45:26AM -0800, R. Tyler Croy wrote: > > Howdy, I'm trying to find some documentation or examples of using > bsd.prog.mk > > inside of a project with multiple binaries that need to get created. I'm > able > ... > This seems plusable as a layout. Note that while you need one Makefile > per program, you don't necessicairly need to spread the code out if you > don't want to. If you'd rather keep the source files in one place you > can use .PATH: directives to access them from a central location. > Since I have had a similar problem in the past... i am also under the impression that those Makefile must be in different directories -- am i wrong ? (in this case having all the sources in a single place does not help too much; and I'd rather have a single Makefile to handle a small set of closely related programs) cheers luigi