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