aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b858ffca147c1319ce49f3f83d626c2cc17b8750 (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) $(CFLAGS) -DSHA3_TEST sha3.c && $(TEST_APP)

clean:
	$(RM) -f $(TEST_APP) $(EXAMPLE_APP) $(OBJS)