fuzzer-cli: tweaked Makefile for oss-fuzz

This commit is contained in:
Daniel Marjamäki 2019-03-22 02:06:58 +01:00
parent 91138578cc
commit 1ce9304664
1 changed files with 6 additions and 4 deletions

View File

@ -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}: