# examples/snake — built with the ww toolchain only (w6c → w6a → w6l).
#
# `ww build` does the whole pipeline. -l ncurses -l c routes through
# w6l'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
