blob: 307cb235e9ce7e82397acd3c886dc75af492cd87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# get backend from environment, or fall back to 0 if unspecified
SHA3_BACKEND ?= 0
CFLAGS=-std=c11 -W -Wall -Wextra -Wpedantic -Werror -g -O3 -march=native -mtune=native -DSHA3_BACKEND=$(SHA3_BACKEND)
APP=./bench
OBJS=sha3.o bench.o
.PHONY=all test clean
all: $(APP)
$(APP): $(OBJS)
$(CC) -o $(APP) $(CFLAGS) $(OBJS) -lcpucycles -lm
%.o: %.c
$(CC) -c $(CFLAGS) $<
clean:
$(RM) -f $(APP) $(OBJS)
|