# examples/snake — built with the ww toolchain only (6c → 6a → 6l).
#
# `ww build` does the whole pipeline. -l ncurses -l c routes through
# 6l's dynamic linker (PT_INTERP + PT_DYNAMIC + PLT/GOT), so the
# resulting binary maps libncurses.so.6 + libc.so.6 at runtime via
# the system loader. No cc.

WW := $(shell cd ../..; pwd)/out/bin/ww

snake: snake.ww
	$(WW) build snake.ww -L /usr/lib -l ncurses -l c

clean:
	rm -f snake snake.o snake.s snake.combined.ww

.PHONY: clean
