summaryrefslogtreecommitdiff
path: root/tests/bench/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2024-04-29 12:03:56 -0400
committerPaul Duncan <pabs@pablotron.org>2024-04-29 12:03:56 -0400
commitfc456ac824b9ef682aaa5b9050c99304ef108c29 (patch)
tree5531ac55fbc683920b7171fa53866d5a02a20160 /tests/bench/Makefile
parent1e6c0ef4d6cfaa5d985c6812286603b25ee420f8 (diff)
downloadsha3-fc456ac824b9ef682aaa5b9050c99304ef108c29.tar.bz2
sha3-fc456ac824b9ef682aaa5b9050c99304ef108c29.zip
add tests/bench
Diffstat (limited to 'tests/bench/Makefile')
-rw-r--r--tests/bench/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bench/Makefile b/tests/bench/Makefile
new file mode 100644
index 0000000..3e08426
--- /dev/null
+++ b/tests/bench/Makefile
@@ -0,0 +1,16 @@
+CFLAGS=-std=c11 -W -Wall -Wextra -Wpedantic -Werror -g -O3 -march=native -mtune=native
+APP=./bench
+OBJS=sha3.o bench.o
+
+.PHONY=all test clean
+
+all: $(APP)
+
+$(APP): $(OBJS)
+ $(CC) -o $(APP) $(CFLAGS) $(OBJS) -lcpucycles -lm
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $<
+
+clean:
+ $(RM) -f $(APP) $(OBJS)