menios
menios copied to clipboard
Extract environment and toolchain configuration to mk/core/config.mk
Parent Issue
Part of #352 - Makefile refactoring
Objective
Move environment/toolchain detection and shared flags to a dedicated configuration file.
Scope
Extract from root Makefile:
- Lines ~1: Initial environment setup
- Lines ~175: Toolchain configuration
- Lines ~203: Shared compiler/linker flags
- Lines ~263: Helper macros like
assert_tools
Target Location
mk/core/config.mk
Implementation Steps
- Create
mk/core/directory structure - Extract configuration variables and macros
- Update root Makefile to
include mk/core/config.mk - Verify all targets still work:
make clean && make all - Test Docker and host builds if applicable
Dependencies
None - this is a foundational module
Acceptance Criteria
- [ ] All environment/toolchain variables moved to mk/core/config.mk
- [ ] Root Makefile includes the new file
- [ ] All existing make targets work unchanged
- [ ] No behavioral changes to builds