diff --git a/fuzzer-cli/Makefile b/fuzzer-cli/Makefile index 1a939d485..ea99edc69 100644 --- a/fuzzer-cli/Makefile +++ b/fuzzer-cli/Makefile @@ -1,12 +1,14 @@ -# a small client for fuzzers. -TARGET_NAME=cppcheck-fuzzing-client +# Cppcheck fuzzer +# Example compile command: +# make CXX=clang++-6.0 CXXFLAGS="-std=c++11 -g -O1 -fsanitize=address,fuzzer" + +TARGET_NAME=cppcheck-fuzzer -CXX=clang++-6.0 -CXXFLAGS=-std=c++11 -g -fsanitize=address,fuzzer CPPCHECK_DIR=.. INCLUDE_DIR=-I ${CPPCHECK_DIR}/lib -I ${CPPCHECK_DIR}/externals/simplecpp -I ${CPPCHECK_DIR}/externals/tinyxml SRC_FILES=main.cpp ${CPPCHECK_DIR}/externals/simplecpp/simplecpp.cpp ${CPPCHECK_DIR}/externals/tinyxml/tinyxml2.cpp ${CPPCHECK_DIR}/lib/*.cpp + all: ${TARGET_NAME} ${TARGET_NAME}: