From c7f630ed23144939a540219787c7be3ffe14b24c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 1 Sep 2023 16:45:37 -0400 Subject: initial commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..11f844c --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O3 -march=native -mtune=native +TEST_APP=./test-sha3 +EXAMPLE_APP=./sha3 +OBJS=sha3.o main.o + +.PHONY=test all + +all: $(EXAMPLE_APP) + +$(EXAMPLE_APP): $(OBJS) + $(CC) -o $(EXAMPLE_APP) $(CFLAGS) $(OBJS) + +%.o: %.c + $(CC) -c $(CFLAGS) $< + +test: + $(CC) -o $(TEST_APP) -DSHA3_TEST sha3.c && $(TEST_APP) + +clean: + $(RM) -f $(TEST_APP) $(EXAMPLE_APP) $(OBJS) -- cgit v1.2.3