aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-07-16 11:47:57 -0400
committerPaul Duncan <pabs@pablotron.org>2019-07-16 11:47:57 -0400
commitb1089d91ec8a7acef32ab588917680e77862617e (patch)
treeca7d6ed5997bb8cd33571cc9b80f10a6a3849874 /Makefile
downloadsha2-b1089d91ec8a7acef32ab588917680e77862617e.tar.bz2
sha2-b1089d91ec8a7acef32ab588917680e77862617e.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c4bc5c6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CFLAGS=-W -Wall -Wextra -pedantic -O3 -std=c11
+OBJS=sha256.o main.o
+APP=sha256
+
+.PHONY=all clean
+
+all: $(APP)
+
+$(APP): $(OBJS)
+ $(CC) $(CFLAGS) -o $(APP) $(OBJS)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+clean:
+ $(RM) $(OBJS) $(APP)
+
+test: $(APP)
+ ./$(APP) ''