Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2013 20:13:21 -0700
From:      Alan Somers <asomers@freebsd.org>
To:        freebsd-hackers@freebsd.org,  "freebsd-hackers@freebsd.org" <hackers@freebsd.org>
Subject:   Re: Using bsd.prog.mk in a project with multiple binaries
Message-ID:  <CAOtMX2hzVegqxQEa1AJHkjgOC4GVnCUYmDwPhBKjfSyRCwxnKQ@mail.gmail.com>
In-Reply-To: <20131106234238.GA2604@britannica.bec.de>
References:  <20131106164526.GV11443@kiwi.coupleofllamas.com> <20131106222531.GF91063@lor.one-eyed-alien.net> <CA%2BhQ2%2Bi24Jtn05gF8wjNNXNs-whBtcR8MPbBaG6VpXzEijE7eg@mail.gmail.com> <20131106230636.GG91063@lor.one-eyed-alien.net> <20131106233229.GA44585@onelab2.iet.unipi.it> <20131106234238.GA2604@britannica.bec.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 6, 2013 at 4:42 PM, Joerg Sonnenberger
<joerg@britannica.bec.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2hzVegqxQEa1AJHkjgOC4GVnCUYmDwPhBKjfSyRCwxnKQ>