blob: 11f844c96a3a986310fa423470fb82c8496ec232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)
|