summaryrefslogtreecommitdiff
path: root/tests/bench/Makefile
blob: deb00b23ba8664f5b0a8be18c25c93dbb88fd4f5 (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
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

test: all
	$(APP)

all: $(APP)

$(APP): $(OBJS)
	$(CC) -o $(APP) $(CFLAGS) $(OBJS) -lcpucycles -lm

%.o: %.c
	$(CC) -c $(CFLAGS) $<

clean:
	$(RM) -f $(APP) $(OBJS)