summaryrefslogtreecommitdiff
path: root/Makefile
blob: 475bf51130aa4c36245ee4579acb95004c4e4a43 (plain) (blame)
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 200 -r 100000 "./smallbrain tests/towers-of-hanoi.bf"
clean:
	rm -f ${target} out.s