git: share/mk: Implement reusable COMPILE.<ext> compile commands
Aaron LI
aly at crater.dragonflybsd.org
Sat Oct 31 19:48:14 PDT 2026
commit 2b234a7324ca8f93a124fd36089e183da8ed19e3
Author: Aaron LI <aly at aaronly.me>
Date: Sat Oct 31 12:27:07 2026 +0800
share/mk: Implement reusable COMPILE.<ext> compile commands
Implement per-extension COMPILE.<ext> compile commands and introduce the
per-mode flags (e.g., _CFLAGS_MODE.o) to make them reusable in
<bsd.lib.mk>, and therefore avoid duplicate code.
This refactoring helps further introduce the per-target flags and .USE
targets for explicit source mappings in the forthcoming commits.
Summary of changes:
share/mk/bsd.lib.mk | 67 ++++++++++++++++-----------------------
share/mk/sys.mk | 90 ++++++++++++++++++++++++++++++++++-------------------
2 files changed, 84 insertions(+), 73 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2b234a7324ca8f93a124fd36089e183da8ed19e3
--
DragonFly BSD source repository
More information about the Commits
mailing list