Repository navigation
Add target groups and external static libraries - #5
Merged
Merged
Conversation
Let a named set of binaries, shared libraries, or tests share archive prerequisites without repeating _STATICLIBS or relinking unrelated outputs. Co-authored-by: Anthony N <anemitz@users.noreply.github.com>
Declare an owning directory for a static-library target so consumers can refresh a linked archive path without copying producer sources or a project-specific recurse rule. Co-authored-by: Anthony N <anemitz@users.noreply.github.com>
_DIR must use recursive assignment when it refers to PROJECT_ROOT, the same way _PATH refers to PKGDIR. Co-authored-by: Anthony N <anemitz@users.noreply.github.com>
Catch := of _PATH before PKGDIR exists, document concurrent standalone consumer races, and assert an unchanged archive does not relink. Co-authored-by: Anthony N <anemitz@users.noreply.github.com>
anemitz
marked this pull request as ready for review
August 25, 2026 03:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds TARGET_GROUPS so selected binaries, shared libraries, and tests can share static-archive prerequisites without repeating _STATICLIBS or relinking unrelated outputs. It also adds EXTERNAL_STATICLIBS so a linked archive path can be refreshed from the owning component without copying producer sources.
_STATICLIBSand remain explicit prerequisites of only the named outputsSTATICLIBStargets;_PATHand_DIRemit a phony recurse only when this Makefile links that path and does not itself build the librarySUBDIRSstill need an explicit producer-before-consumer order formake -j; concurrent standalone consumer builds that share a stale archive are out of contractValidation ran
make -C tests host.Fixes #4