aboutsummaryrefslogtreecommitdiff
path: root/examples/06-all/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-10-16 17:20:36 -0400
committerPaul Duncan <pabs@pablotron.org>2023-10-16 17:20:36 -0400
commit8bce03ef55d76e84c3a15c68cceaa71800196792 (patch)
tree3645c7777c61ddedd1f118d9a84631eac183b2f2 /examples/06-all/Makefile
parent4c94118ec89c3cae982bf4a6cc8866bc68741b33 (diff)
downloadsha3-8bce03ef55d76e84c3a15c68cceaa71800196792.tar.bz2
sha3-8bce03ef55d76e84c3a15c68cceaa71800196792.zip
add examples/06-all/
Diffstat (limited to 'examples/06-all/Makefile')
-rw-r--r--examples/06-all/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/06-all/Makefile b/examples/06-all/Makefile
new file mode 100644
index 0000000..f29c034
--- /dev/null
+++ b/examples/06-all/Makefile
@@ -0,0 +1,16 @@
+CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O3 -march=native -mtune=native
+APP=./all-fns
+OBJS=sha3.o all-fns.o
+
+.PHONY=all
+
+all: $(APP)
+
+$(APP): $(OBJS)
+ $(CC) -o $(APP) $(CFLAGS) $(OBJS)
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $<
+
+clean:
+ $(RM) -f $(APP) $(OBJS)