diff options
author | Thomas Voss <mail@thomasvoss.com> | 2021-09-09 02:42:25 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2021-09-09 02:42:25 +0200 |
commit | 00974c325bfdb24c6027a87ce391cfda0ab58fcb (patch) | |
tree | 5d6de4e857a4adbcb7ff5a4e154bf7075e763c86 /Makefile |
Genesis commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
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 |