From b1089d91ec8a7acef32ab588917680e77862617e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 16 Jul 2019 11:47:57 -0400 Subject: initial commit --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) '' -- cgit v1.2.3