• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1##############################################################################
2# OSS-Fuzz
3##############################################################################
4
5# The following targets realize the integration to OSS-Fuzz.
6# See <https://github.com/google/oss-fuzz/blob/master/projects/json/build.sh> for more information.
7
8# additional flags
9CXXFLAGS += -std=c++11
10CPPFLAGS += -I ../single_include
11
12FUZZER_ENGINE = src/fuzzer-driver_afl.cpp
13FUZZERS = parse_afl_fuzzer parse_bson_fuzzer parse_cbor_fuzzer parse_msgpack_fuzzer parse_ubjson_fuzzer
14fuzzers: $(FUZZERS)
15
16parse_afl_fuzzer:
17	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(FUZZER_ENGINE) src/fuzzer-parse_json.cpp -o $@
18
19parse_bson_fuzzer:
20	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(FUZZER_ENGINE) src/fuzzer-parse_bson.cpp -o $@
21
22parse_cbor_fuzzer:
23	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(FUZZER_ENGINE) src/fuzzer-parse_cbor.cpp -o $@
24
25parse_msgpack_fuzzer:
26	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(FUZZER_ENGINE) src/fuzzer-parse_msgpack.cpp -o $@
27
28parse_ubjson_fuzzer:
29	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(FUZZER_ENGINE) src/fuzzer-parse_ubjson.cpp -o $@
30