mirror of https://github.com/google/oss-fuzz.git
21 lines
359 B
Makefile
21 lines
359 B
Makefile
|
.POSIX:
|
||
|
CC = cc
|
||
|
CFLAGS = -std=c99 -Wall -Wextra -O3 -g3
|
||
|
|
||
|
all: clean execSan tripwire target
|
||
|
|
||
|
execSan: execSan.c
|
||
|
$(CC) $(CFLAGS) -o $@ $^
|
||
|
|
||
|
tripwire: tripwire.cpp
|
||
|
clang++ -o /tmp/$@ $^
|
||
|
|
||
|
target: target.cpp
|
||
|
clang -fsanitize=fuzzer -o $@ $^
|
||
|
|
||
|
test: all vuln.dict
|
||
|
./execSan ./target -dict=vuln.dict
|
||
|
|
||
|
clean:
|
||
|
rm -f execSan /tmp/tripwire target /tmp/injected
|