aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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) ''