From 00974c325bfdb24c6027a87ce391cfda0ab58fcb Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Thu, 9 Sep 2021 02:42:25 +0200 Subject: Genesis commit --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..475bf51 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.2.3