contrib/fuzz/Makefile
changeset 43150 7ff40418c6bf
parent 41183 c01fac6749e5
child 43152 b37dd26935ee
equal deleted inserted replaced
43149:2a0774e9d2a8 43150:7ff40418c6bf
   103 revlog.o: ../../mercurial/cext/revlog.c
   103 revlog.o: ../../mercurial/cext/revlog.c
   104 	$(CC) $(CFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
   104 	$(CC) $(CFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
   105 	  -I../../mercurial \
   105 	  -I../../mercurial \
   106 	  -c -o revlog.o ../../mercurial/cext/revlog.c
   106 	  -c -o revlog.o ../../mercurial/cext/revlog.c
   107 
   107 
       
   108 dirs_fuzzer: dirs.cc manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o
       
   109 	$(CXX) $(CXXFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
       
   110 	  -Wno-register -Wno-macro-redefined \
       
   111 	  -I../../mercurial dirs.cc \
       
   112 	  manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o \
       
   113 	  -lFuzzingEngine `$$OUT/sanpy/bin/python-config --ldflags` \
       
   114 	  -o $$OUT/dirs_fuzzer
       
   115 
       
   116 manifest_corpus.zip:
       
   117 	python manifest_corpus.py $$OUT/manifest_fuzzer_seed_corpus.zip
       
   118 
   108 manifest_fuzzer: manifest.cc manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o
   119 manifest_fuzzer: manifest.cc manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o
   109 	$(CXX) $(CXXFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
   120 	$(CXX) $(CXXFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
   110 	  -Wno-register -Wno-macro-redefined \
   121 	  -Wno-register -Wno-macro-redefined \
   111 	  -I../../mercurial manifest.cc \
   122 	  -I../../mercurial manifest.cc \
   112 	  manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o \
   123 	  manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o \
   113 	  -lFuzzingEngine `$$OUT/sanpy/bin/python-config --ldflags` \
   124 	  -lFuzzingEngine `$$OUT/sanpy/bin/python-config --ldflags` \
   114 	  -o $$OUT/manifest_fuzzer
   125 	  -o $$OUT/manifest_fuzzer
   115 
       
   116 manifest_corpus.zip:
       
   117 	python manifest_corpus.py $$OUT/manifest_fuzzer_seed_corpus.zip
       
   118 
   126 
   119 revlog_fuzzer: revlog.cc manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o
   127 revlog_fuzzer: revlog.cc manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o
   120 	$(CXX) $(CXXFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
   128 	$(CXX) $(CXXFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
   121 	  -Wno-register -Wno-macro-redefined \
   129 	  -Wno-register -Wno-macro-redefined \
   122 	  -I../../mercurial revlog.cc \
   130 	  -I../../mercurial revlog.cc \
   153 	$(RM) *.o *_fuzzer \
   161 	$(RM) *.o *_fuzzer \
   154 	  bdiff \
   162 	  bdiff \
   155 	  mpatch \
   163 	  mpatch \
   156 	  xdiff
   164 	  xdiff
   157 
   165 
   158 oss-fuzz: bdiff_fuzzer mpatch_fuzzer mpatch_corpus.zip xdiff_fuzzer manifest_fuzzer manifest_corpus.zip revlog_fuzzer revlog_corpus.zip dirstate_fuzzer dirstate_corpus.zip fm1readmarkers_fuzzer fm1readmarkers_corpus.zip
   166 oss-fuzz: bdiff_fuzzer mpatch_fuzzer mpatch_corpus.zip xdiff_fuzzer dirs_fuzzer manifest_fuzzer manifest_corpus.zip revlog_fuzzer revlog_corpus.zip dirstate_fuzzer dirstate_corpus.zip fm1readmarkers_fuzzer fm1readmarkers_corpus.zip
   159 
   167 
   160 .PHONY: all clean oss-fuzz
   168 .PHONY: all clean oss-fuzz