summaryrefslogtreecommitdiff
path: root/examples/04-turboshake128/Makefile
blob: 4706e0e3c5b3fac9a7acfcabda6b29aa650a3e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# backend (0 to auto-detect)
BACKEND ?= 0

CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O3 -march=native -mtune=native -DBACKEND=$(BACKEND)
APP=./turbohash128-example
OBJS=sha3.o main.o

.PHONY=all clean

all: $(APP)

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

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

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