blob: 0558ac929a28d13660cc08ce6f8fc2456a089f18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# backend (0 to auto-detect)
BACKEND ?= 0
CFLAGS=-g -fsanitize=address,fuzzer -W -Wall -Wextra -Werror -pedantic -std=c11 -DBACKEND=$(BACKEND)
APP=./fuzz-shake128
OBJS=sha3.o fuzz.o
CC=clang
.PHONY=all clean fuzz
all: $(APP)
# build sample application
$(APP): $(OBJS)
$(CC) -o $(APP) $(CFLAGS) $(OBJS)
%.o: %.c
$(CC) -c $(CFLAGS) $<
fuzz: $(APP)
$(APP)
clean:
$(RM) -f $(APP) $(OBJS)
|