##// END OF EJS Templates
fuzz: expand variables by make...
Yuya Nishihara -
r38232:bf901559 default
parent child Browse files
Show More
@@ -1,46 +1,49 b''
1 CC = clang
2 CXX = clang++
3
1 4 fuzzutil.o: fuzzutil.cc fuzzutil.h
2 $$CXX $$CXXFLAGS -g -O1 -fsanitize=fuzzer-no-link,address \
5 $(CXX) $(CXXFLAGS) -g -O1 -fsanitize=fuzzer-no-link,address \
3 6 -std=c++17 \
4 7 -I../../mercurial -c -o fuzzutil.o fuzzutil.cc
5 8
6 9 fuzzutil-oss-fuzz.o: fuzzutil.cc fuzzutil.h
7 $$CXX $$CXXFLAGS -std=c++17 \
10 $(CXX) $(CXXFLAGS) -std=c++17 \
8 11 -I../../mercurial -c -o fuzzutil-oss-fuzz.o fuzzutil.cc
9 12
10 13 bdiff.o: ../../mercurial/bdiff.c
11 $$CC $$CFLAGS -fsanitize=fuzzer-no-link,address -c -o bdiff.o \
14 $(CC) $(CFLAGS) -fsanitize=fuzzer-no-link,address -c -o bdiff.o \
12 15 ../../mercurial/bdiff.c
13 16
14 17 bdiff: bdiff.cc bdiff.o fuzzutil.o
15 $$CXX $$CXXFLAGS -DHG_FUZZER_INCLUDE_MAIN=1 -g -O1 -fsanitize=fuzzer-no-link,address \
18 $(CXX) $(CXXFLAGS) -DHG_FUZZER_INCLUDE_MAIN=1 -g -O1 -fsanitize=fuzzer-no-link,address \
16 19 -std=c++17 \
17 20 -I../../mercurial bdiff.cc bdiff.o fuzzutil.o -o bdiff
18 21
19 22 bdiff-oss-fuzz.o: ../../mercurial/bdiff.c
20 $$CC $$CFLAGS -c -o bdiff-oss-fuzz.o ../../mercurial/bdiff.c
23 $(CC) $(CFLAGS) -c -o bdiff-oss-fuzz.o ../../mercurial/bdiff.c
21 24
22 25 bdiff_fuzzer: bdiff.cc bdiff-oss-fuzz.o fuzzutil-oss-fuzz.o
23 $$CXX $$CXXFLAGS -std=c++17 -I../../mercurial bdiff.cc \
26 $(CXX) $(CXXFLAGS) -std=c++17 -I../../mercurial bdiff.cc \
24 27 bdiff-oss-fuzz.o fuzzutil-oss-fuzz.o -lFuzzingEngine -o \
25 28 $$OUT/bdiff_fuzzer
26 29
27 30 x%.o: ../../mercurial/thirdparty/xdiff/x%.c ../../mercurial/thirdparty/xdiff/*.h
28 $$CC -g -O1 -fsanitize=fuzzer-no-link,address -c \
31 $(CC) -g -O1 -fsanitize=fuzzer-no-link,address -c \
29 32 -o $@ \
30 33 $<
31 34
32 35 xdiff: xdiff.cc xdiffi.o xprepare.o xutils.o fuzzutil.o
33 $$CXX $$CXXFLAGS -DHG_FUZZER_INCLUDE_MAIN=1 -g -O1 -fsanitize=fuzzer-no-link,address \
36 $(CXX) $(CXXFLAGS) -DHG_FUZZER_INCLUDE_MAIN=1 -g -O1 -fsanitize=fuzzer-no-link,address \
34 37 -I../../mercurial xdiff.cc \
35 38 xdiffi.o xprepare.o xutils.o fuzzutil.o -o xdiff
36 39
37 40 fuzz-x%.o: ../../mercurial/thirdparty/xdiff/x%.c ../../mercurial/thirdparty/xdiff/*.h
38 $$CC $$CFLAGS -c \
41 $(CC) $(CFLAGS) -c \
39 42 -o $@ \
40 43 $<
41 44
42 45 xdiff_fuzzer: xdiff.cc fuzz-xdiffi.o fuzz-xprepare.o fuzz-xutils.o fuzzutil-oss-fuzz.o
43 $$CXX $$CXXFLAGS -std=c++17 -I../../mercurial xdiff.cc \
46 $(CXX) $(CXXFLAGS) -std=c++17 -I../../mercurial xdiff.cc \
44 47 fuzz-xdiffi.o fuzz-xprepare.o fuzz-xutils.o fuzzutil-oss-fuzz.o \
45 48 -lFuzzingEngine -o $$OUT/xdiff_fuzzer
46 49
General Comments 0
You need to be logged in to leave comments. Login now