cppcheck/oss-fuzz/Makefile

25 lines
968 B
Makefile
Raw Permalink Normal View History

2019-03-29 21:07:01 +01:00
#
# fuzzer clients
# ====================
#
# Local libfuzzer client:
# make CXX=clang++-6.0 CXXFLAGS="-fsanitize=address" fuzz-client
2019-03-29 21:07:01 +01:00
2019-03-29 22:58:56 +01:00
CPPCHECK_DIR=..
2020-11-26 22:47:57 +01:00
INCLUDE_DIR=-I ${CPPCHECK_DIR}/lib -I ${CPPCHECK_DIR}/externals/picojson -I ${CPPCHECK_DIR}/externals/simplecpp -I ${CPPCHECK_DIR}/externals/tinyxml2 -I ${CPPCHECK_DIR}/externals
SRC_FILES=main.cpp type2.cpp ${CPPCHECK_DIR}/externals/simplecpp/simplecpp.cpp ${CPPCHECK_DIR}/externals/tinyxml2/tinyxml2.cpp ${CPPCHECK_DIR}/lib/*.cpp
2019-03-29 21:07:01 +01:00
2019-03-29 22:58:56 +01:00
all: oss-fuzz-client translate
2019-03-29 21:07:01 +01:00
oss-fuzz-client: main.cpp type2.cpp type2.h
${CXX} -std=c++11 -g ${CXXFLAGS} -o oss-fuzz-client ${INCLUDE_DIR} ${SRC_FILES} ${LIB_FUZZING_ENGINE}
fuzz-client: main.cpp type2.cpp type2.h
${CXX} -std=c++11 -g ${CXXFLAGS} -o fuzz-client ${INCLUDE_DIR} ${SRC_FILES} -fsanitize=fuzzer
2019-03-29 21:07:01 +01:00
translate: translate.cpp type2.cpp type2.h
${CXX} -std=c++11 -g ${CXXFLAGS} -o translate type2.cpp translate.cpp
2019-03-29 21:07:01 +01:00
clean:
rm -f oss-fuzz-client fuzz-client translate