subs & deps distinction #13

Open
opened 2026-05-23 03:55:34 +00:00 by jaynuine · 2 comments
Owner

inclusion direction

subs point inwards, they depend on the unit referencing them, whereas deps point outwards, and the current node requires the units they mention as parts of itself, which means it should aggregate the variable instances of each dep recursively such as UNITS for final compilation

inclusion direction subs point inwards, they depend on the unit referencing them, whereas deps point outwards, and the current node requires the units they mention as parts of itself, which means it should aggregate the variable instances of each dep recursively such as UNITS for final compilation
Author
Owner

rather than passing variables such as units upwards, one may partially link all objects produced at a stage of the tree using ld -r and append that filepath to the root makefile's units

rather than passing variables such as units upwards, one may partially link all objects produced at a stage of the tree using `ld -r` and append that filepath to the root makefile's units
Author
Owner

to prevent filename collision perhaps the resulting unified object should be named after the invoked makefile ?
so Makefile -> Makefile.o, node.mk -> node.mk.o
we wouldn't want to risk there already existing a node.o file which would cause relinking issues as different stages of the build process alternate in overwriting the same file, and this clearly conveys that this "belongs" to the similarly named makefile, and that it is not a regular object file

to prevent filename collision perhaps the resulting unified object should be named after the invoked makefile ? so `Makefile` -> `Makefile.o`, `node.mk` -> `node.mk.o` we wouldn't want to risk there already existing a `node.o` file which would cause relinking issues as different stages of the build process alternate in overwriting the same file, and this clearly conveys that this "belongs" to the similarly named makefile, and that it is not a regular object file
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaynuine/weegie#13
No description provided.