aboutsummaryrefslogtreecommitdiff
path: root/tests/avx2/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2024-05-26 15:15:20 -0400
committerPaul Duncan <pabs@pablotron.org>2024-05-26 15:15:20 -0400
commit1544f849c5fd17a9a405987a2ebc7381a3c74758 (patch)
tree13648d63352bbb8763a26916dc14394e9b42f58c /tests/avx2/Makefile
parent06d3f4b8926d3db30bd4883caf98e5dbed6c43db (diff)
downloadsha3-1544f849c5fd17a9a405987a2ebc7381a3c74758.tar.bz2
sha3-1544f849c5fd17a9a405987a2ebc7381a3c74758.zip
add tests/avx2
Diffstat (limited to 'tests/avx2/Makefile')
-rw-r--r--tests/avx2/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/avx2/Makefile b/tests/avx2/Makefile
new file mode 100644
index 0000000..a30cbc9
--- /dev/null
+++ b/tests/avx2/Makefile
@@ -0,0 +1,19 @@
+CFLAGS=-std=c11 -W -Wall -Wextra -Wpedantic -Werror -g -O3 -march=native -mtune=native
+APP=./avx2
+OBJS=main.o
+
+.PHONY=all test clean
+
+test: all
+ $(APP)
+
+all: $(APP)
+
+$(APP): $(OBJS)
+ $(CC) -o $(APP) $(CFLAGS) $(OBJS)
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $<
+
+clean:
+ $(RM) -f $(APP) $(OBJS)