From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 6 23:06:39 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 9109AC1 for ; Wed, 6 Nov 2013 23:06:39 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 46293262E for ; Wed, 6 Nov 2013 23:06:38 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.7/8.14.7) with ESMTP id rA6N6btl024298; Wed, 6 Nov 2013 17:06:37 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.7/8.14.7/Submit) id rA6N6ahm024297; Wed, 6 Nov 2013 17:06:36 -0600 (CST) (envelope-from brooks) Date: Wed, 6 Nov 2013 17:06:36 -0600 From: Brooks Davis To: Luigi Rizzo Subject: Re: Using bsd.prog.mk in a project with multiple binaries Message-ID: <20131106230636.GG91063@lor.one-eyed-alien.net> References: <20131106164526.GV11443@kiwi.coupleofllamas.com> <20131106222531.GF91063@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oOB74oR0WcNeq9Zb" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 23:06:39 -0000 --oOB74oR0WcNeq9Zb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 06, 2013 at 02:33:01PM -0800, Luigi Rizzo wrote: > On Wed, Nov 6, 2013 at 2:25 PM, Brooks Davis wrote: >=20 > > 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. > > >=20 > 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) The Makefiles do need to be in different directories since they need to be called Makefile. I suppose you could hand roll a toplevel Makefile that called a series of Makefile.prog1, Makefile.prog2, etc files, but that seems not very useful. -- Brooks --oOB74oR0WcNeq9Zb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFSest7XY6L6fI4GtQRAjevAJsEKRYhOs053H+mwW1YQ00Jp2jBrACgz5zO cG8mvjmNbkBGFdPd4JznZ+4= =dz+M -----END PGP SIGNATURE----- --oOB74oR0WcNeq9Zb--