Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2013 08:45:26 -0800
From:      "R. Tyler Croy" <tyler@monkeypox.org>
To:        hackers@FreeBSD.org
Subject:   Using bsd.prog.mk in a project with multiple binaries
Message-ID:  <20131106164526.GV11443@kiwi.coupleofllamas.com>

next in thread | raw e-mail | index | archive | help

--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--



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