# ===========================================================================
# Build outputs
# ===========================================================================

# `build/` directories anywhere in the tree
# (top-level build/, libc/build/, libbgi/build/, toolchain/*/build/, ...)
build/

# sprinter-cc per-example intermediate directory
.sprinter-cc-*/

# Per-program final/intermediate outputs landing alongside the source
# (real apps under examples/ and libc feature tests under tests/).
examples/*/*.exe
examples/*/*.asm
examples/*/*.lst
examples/*/*.lk
examples/*/*.ihx
examples/*/*.noi
examples/*/*.sym
examples/*/*.map
examples/*/*.rel
examples/*/*.cdb
examples/*/*.mem
examples/*/*.rst

# Temporary build directory for floppy disk image preparation
examples/*/.disk_tmp/

tests/*/*.exe
tests/*/*.asm
tests/*/*.lst
tests/*/*.lk
tests/*/*.ihx
tests/*/*.noi
tests/*/*.sym
tests/*/*.map
tests/*/*.rel
tests/*/*.cdb
tests/*/*.mem
tests/*/*.rst

# libc + libbgi archives (built by libc/Makefile + libbgi/Makefile)
lib/*.lib

# Host-built mkexe binary + test outputs (input fixtures *.bin/*.ihx kept)
toolchain/mkexe/mkexe
toolchain/mkexe/tests/*.exe
toolchain/mkexe/tests/*.actual

# Host-C build artifacts (mkexe and similar tools compiled with native cc)
*.o
*.obj
*.dSYM/

# ===========================================================================
# Vendored / downloaded
# ===========================================================================

# SDCC: extracted source tree + download tarballs
# (only third_party/setup-sdcc.sh tracked)
third_party/sdcc/
third_party/sdcc-*/
third_party/*.tar.bz2
third_party/*.tar.gz

# MAME emulator install — ~1 GB binary + ROMs + CHDs
mame/

# ===========================================================================
# OS / editor / AI assistant
# ===========================================================================

# macOS
.DS_Store
._*

# Editor swap / backup
*~
*.swp
*.bak
*.orig
*.rej

# IDEs
.vscode/
.idea/
.kilo/

# Claude Code local settings (per-machine, not for the repo)
.claude/
