From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 7 03:13:24 2013 Return-Path: Delivered-To: freebsd-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 60338FE3; Thu, 7 Nov 2013 03:13:24 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CC69F2512; Thu, 7 Nov 2013 03:13:23 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id q59so353846wes.25 for ; Wed, 06 Nov 2013 19:13:22 -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:content-type; bh=I1uFSyXy1UODP0m3/m+pruqlZaP/LC4mZ64ez+NIB5I=; b=OPaCObxlKJldEDBw8CY2WnXKlOmThxFGq760lxRnNmQVXjsNHlm75YAl832X5n1ETK q0fJfcByw0On5T1WFKciDjCUD4iUNkp5H+LQ5JpdibbGa9UMNXvo1nVa1W3CmywfxGDs QAUgjQpOYPxOgAATAFaWfdJE4yGctqxFO39zxbSPb+iVlQE10qmyHHDxWV/WLiTI0+D/ Dzq+nync+qwvf7AuuPMJeqLimWv2AmhbFWNSLNXCKlz3yK2J7eaNTxnrIgAMlqnLw4mB nF/ZlvacKZQX+Kp5HBWlPlk6OoFSk9475lWpA6JrCrKghxSmX4uiWMILlwCasxZAso7U mUvg== MIME-Version: 1.0 X-Received: by 10.180.185.10 with SMTP id ey10mr557068wic.29.1383794001924; Wed, 06 Nov 2013 19:13:21 -0800 (PST) Sender: asomers@gmail.com Received: by 10.194.171.35 with HTTP; Wed, 6 Nov 2013 19:13:21 -0800 (PST) In-Reply-To: <20131106234238.GA2604@britannica.bec.de> References: <20131106164526.GV11443@kiwi.coupleofllamas.com> <20131106222531.GF91063@lor.one-eyed-alien.net> <20131106230636.GG91063@lor.one-eyed-alien.net> <20131106233229.GA44585@onelab2.iet.unipi.it> <20131106234238.GA2604@britannica.bec.de> Date: Wed, 6 Nov 2013 20:13:21 -0700 X-Google-Sender-Auth: x58SXdws_EqC0U3on7MBXeIQoVM Message-ID: Subject: Re: Using bsd.prog.mk in a project with multiple binaries From: Alan Somers To: freebsd-hackers@freebsd.org, "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 07 Nov 2013 03:13:24 -0000 On Wed, Nov 6, 2013 at 4:42 PM, Joerg Sonnenberger wrote: > On Thu, Nov 07, 2013 at 12:32:29AM +0100, Luigi Rizzo wrote: >> I was hoping that someday we could have support in bsd.prog.mk >> to handle multiple program names in ${PROG}, perhaps expanding >> the dependencies using OBJS.prog1 OBJS.prog2 ... etc > > NetBSD supports PROGS for this purpose. In fact, Simon and Garrett recently ported NetBSD's mechanism. It's called bsd.progs.mk and it's in FreeBSD/head and stable/10. It works much like bsd.prog.mk. Basic usage is like this: PROGS= foo bar baz SRCS.foo= foo.c common.c SRCS.bar= bar.c common.c SRCS.baz= baz.c common.c It's still something of a work in progress. The exact usage is likely to change for awhile. -Alan