summaryrefslogtreecommitdiff
path: root/examples/00-sha3-256/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-09-06 23:23:31 -0400
committerPaul Duncan <pabs@pablotron.org>2023-09-06 23:23:31 -0400
commit4eebef1961a1c01890fe11dc5f1b9f3a1ea705e0 (patch)
treec48e3f15f1f26ce4456c549c2211545e8448cfac /examples/00-sha3-256/Makefile
parent7887a482dc7951a88fd0b2a4caa8988f0aef4340 (diff)
downloadsha3-4eebef1961a1c01890fe11dc5f1b9f3a1ea705e0.tar.bz2
sha3-4eebef1961a1c01890fe11dc5f1b9f3a1ea705e0.zip
add examples/
Diffstat (limited to 'examples/00-sha3-256/Makefile')
-rw-r--r--examples/00-sha3-256/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/00-sha3-256/Makefile b/examples/00-sha3-256/Makefile
new file mode 100644
index 0000000..198831b
--- /dev/null
+++ b/examples/00-sha3-256/Makefile
@@ -0,0 +1,16 @@
+CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O3 -march=native -mtune=native
+APP=./sha3-256-example
+OBJS=sha3.o main.o
+
+.PHONY=all
+
+all: $(APP)
+
+$(APP): $(OBJS)
+ $(CC) -o $(APP) $(CFLAGS) $(OBJS)
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $<
+
+clean:
+ $(RM) -f $(APP) $(OBJS)