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