git: bsd.hostprog.mk: Reimplement to support multiple programs

Aaron LI aly at crater.dragonflybsd.org
Fri Aug 28 00:23:03 PDT 2026


commit 8d3e637cc3226868d78d78753850e0390935c5ee
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Aug 27 19:08:38 2026 +0800

    bsd.hostprog.mk: Reimplement to support multiple programs
    
    Introduce PROGS and PROGS_CXX together with per-program variables to
    support the multiple-program mode, allowing to build multiple programs
    with one makefile.  This mode can help simplify the makefiles as well as
    the hierarchies.
    
    The original single-program mode is kept backward compatible.

Summary of changes:
 share/mk/bsd.dep.mk      |   2 +-
 share/mk/bsd.hostprog.mk | 141 ++++++++++++++++++++++++++++++++++-------------
 2 files changed, 104 insertions(+), 39 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8d3e637cc3226868d78d78753850e0390935c5ee


-- 
DragonFly BSD source repository


More information about the Commits mailing list