Example: Debug Build

export KOS_BASE=/opt/toolchains/dc/kos
export KOS_CC_PREFIX=sh-elf
make debug

Example: Release with Profiling

make PROFILE=1 release

Build System Architecture

Makefile
├── kos.mk (KOS rules)
├── src/ (application sources)
│   ├── d3tui/ (main library)
│   └── tests/ (unit tests)
├── include/ (public headers)
├── docs/ (documentation)
├── scripts/ (build helpers)
└── workspace/ (external libraries)
    └── shachi/ (SHACHI patterns)