equal
deleted
inserted
replaced
1 CC = clang |
1 CC = clang |
2 CXX = clang++ |
2 CXX = clang++ |
3 |
3 |
4 LIB_FUZZING_ENGINE ?= -lFuzzingEngine |
4 # By default, use our own standalone_fuzz_target_runner. |
|
5 # This runner does no fuzzing, but simply executes the inputs |
|
6 # provided via parameters. |
|
7 # Run e.g. "make all LIB_FUZZING_ENGINE=/path/to/libFuzzer.a" |
|
8 # to link the fuzzer(s) against a real fuzzing engine. |
|
9 # |
|
10 # OSS-Fuzz will define its own value for LIB_FUZZING_ENGINE. |
|
11 LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o |
5 |
12 |
6 PYTHON_CONFIG ?= $$OUT/sanpy/bin/python-config |
13 PYTHON_CONFIG ?= $$OUT/sanpy/bin/python-config |
7 |
14 |
8 CXXFLAGS += -Wno-deprecated-register |
15 CXXFLAGS += -Wno-deprecated-register |
9 |
16 |
10 all: bdiff mpatch xdiff |
17 all: bdiff mpatch xdiff |
|
18 |
|
19 standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc |
11 |
20 |
12 pyutil.o: pyutil.cc pyutil.h |
21 pyutil.o: pyutil.cc pyutil.h |
13 $(CXX) $(CXXFLAGS) -g -O1 \ |
22 $(CXX) $(CXXFLAGS) -g -O1 \ |
14 `$(PYTHON_CONFIG) --cflags` \ |
23 `$(PYTHON_CONFIG) --cflags` \ |
15 -I../../mercurial -c -o pyutil.o pyutil.cc |
24 -I../../mercurial -c -o pyutil.o pyutil.cc |