1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
target = smallbrain CC = cc CFLAGS = -g -no-pie all: ${target} ${target}: ${target}.s m4 macros.m4 $< >out.s ${CC} ${CFLAGS} -o $@ out.s .PHONY: bench clean bench: hyperfine -S sh -w 20 -r 100 "./smallbrain tests/towers-of-hanoi.bf" clean: rm -f ${target} out.s