Makefile 598 B

12345678910111213141516171819202122
  1. # CAUTION: this file is invoked by https://github.com/google/oss-fuzz
  2. CXXFLAGS += -I../../src -DARDUINOJSON_DEBUG=1
  3. all: \
  4. $(OUT)/json_fuzzer \
  5. $(OUT)/json_fuzzer_seed_corpus.zip \
  6. $(OUT)/json_fuzzer.options \
  7. $(OUT)/msgpack_fuzzer \
  8. $(OUT)/msgpack_fuzzer_seed_corpus.zip \
  9. $(OUT)/msgpack_fuzzer.options
  10. $(OUT)/%_fuzzer: %_fuzzer.cpp $(shell find ../../src -type f)
  11. $(CXX) $(CXXFLAGS) $< -o$@ $(LIB_FUZZING_ENGINE)
  12. $(OUT)/%_fuzzer_seed_corpus.zip: %_seed_corpus/*
  13. zip -j $@ $?
  14. $(OUT)/%_fuzzer.options:
  15. @echo "[libfuzzer]" > $@
  16. @echo "max_len = 256" >> $@
  17. @echo "timeout = 10" >> $@