From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 6 16:45:33 2013 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8FC312FE for ; Wed, 6 Nov 2013 16:45:33 +0000 (UTC) (envelope-from tyler@monkeypox.org) Received: from starfish.geekisp.com (starfish.geekisp.com [216.168.135.166]) by mx1.freebsd.org (Postfix) with SMTP id 21F3B2C3A for ; Wed, 6 Nov 2013 16:45:32 +0000 (UTC) Received: (qmail 26995 invoked by uid 1003); 6 Nov 2013 16:45:31 -0000 Received: from unknown (HELO kiwi.coupleofllamas.com) (tyler@monkeypox.org@172.56.16.12) by mail.geekisp.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 6 Nov 2013 16:45:31 -0000 Date: Wed, 6 Nov 2013 08:45:26 -0800 From: "R. Tyler Croy" To: hackers@FreeBSD.org Subject: Using bsd.prog.mk in a project with multiple binaries Message-ID: <20131106164526.GV11443@kiwi.coupleofllamas.com> Mail-Followup-To: hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="D/26AIznG/rf8cgR" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 16:45:33 -0000 --D/26AIznG/rf8cgR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 to shuffle the manpages and source code into directories to where each binary can have a Makefile, but I cannot find anything in the Developer's Handbook discussing such a project layout. E.g.: -daemon.git/ -daemon/ daemon.man.1 daemon.c -daemontool/ daemontool.man.1 daemontool.c Does one simply use a parent Makefile which calls into each directory? Or is there some other .mk file with helpers for this? A related question would be, does this even make snese as far as a project layout is concerned? This project I intend on creating a port for once it's further along, and I'd like to avoid painting myself into any cornners with the makefiles now if I can avoid it. Any advice/examples/pointers would be appreciated :) Cheers - R. Tyler Croy -------------------------------------- Code: https://github.com/rtyler Chatter: https://twitter.com/agentdero rtyler@jabber.org --D/26AIznG/rf8cgR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlJ6ciYACgkQFCbH3D9R4W/b0ACglJ8KqqIqj9u84/JhPj8jVBo0 YeEAn3igMGtnqXRapMpqT7C6ZZg2EacI =lZDf -----END PGP SIGNATURE----- --D/26AIznG/rf8cgR--