mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			609 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			609 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # CAUTION: this file is invoked by https://github.com/google/oss-fuzz
 | |
| 
 | |
| CXXFLAGS += -I../../src -DARDUINOJSON_DEBUG=1 -std=c++11
 | |
| 
 | |
| all: \
 | |
| 	$(OUT)/json_fuzzer \
 | |
| 	$(OUT)/json_fuzzer_seed_corpus.zip \
 | |
| 	$(OUT)/json_fuzzer.options \
 | |
| 	$(OUT)/msgpack_fuzzer \
 | |
| 	$(OUT)/msgpack_fuzzer_seed_corpus.zip \
 | |
| 	$(OUT)/msgpack_fuzzer.options
 | |
| 
 | |
| $(OUT)/%_fuzzer: %_fuzzer.cpp $(shell find ../../src -type f)
 | |
| 	$(CXX) $(CXXFLAGS) $< -o$@ $(LIB_FUZZING_ENGINE)
 | |
| 
 | |
| $(OUT)/%_fuzzer_seed_corpus.zip: %_seed_corpus/*
 | |
| 	zip -j $@ $?
 | |
| 
 | |
| $(OUT)/%_fuzzer.options:
 | |
| 	@echo "[libfuzzer]" > $@
 | |
| 	@echo "max_len = 256" >> $@
 | |
| 	@echo "timeout = 10" >> $@
 |