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

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

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

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

.PHONY: clean
