cppcheck/oss-fuzz/Makefile

25 lines
868 B
Makefile
Raw 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=..
2019-03-29 21:07:01 +01:00
INCLUDE_DIR=-I ${CPPCHECK_DIR}/lib -I ${CPPCHECK_DIR}/externals/simplecpp -I ${CPPCHECK_DIR}/externals/tinyxml
2019-03-29 22:58:56 +01:00
SRC_FILES=main.cpp type2.cpp ${CPPCHECK_DIR}/externals/simplecpp/simplecpp.cpp ${CPPCHECK_DIR}/externals/tinyxml/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} -lFuzzingEngine
fuzz-client: main.cpp type2.cpp type2.h
${CXX} -std=c++11 -g -O1 ${CXXFLAGS} -fsanitize=fuzzer -o fuzz-client ${INCLUDE_DIR} ${SRC_FILES}
2019-03-29 21:07:01 +01:00
translate: translate.cpp type2.cpp type2.h
2019-03-29 22:58:56 +01:00
g++ -o translate type2.cpp translate.cpp
2019-03-29 21:07:01 +01:00
clean:
rm -f oss-fuzz-client fuzz-client translate