2019-03-29 21:07:01 +01:00
|
|
|
#
|
2019-03-30 18:09:44 +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-06-24 20:53:19 +02:00
|
|
|
INCLUDE_DIR=-I ${CPPCHECK_DIR}/lib -I ${CPPCHECK_DIR}/externals/simplecpp -I ${CPPCHECK_DIR}/externals/tinyxml -I ${CPPCHECK_DIR}/externals
|
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
|
|
|
|
2019-03-30 18:09:44 +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
|
|
|
|
2019-03-30 18:09:44 +01:00
|
|
|
translate: translate.cpp type2.cpp type2.h
|
2020-03-31 13:12:08 +02:00
|
|
|
g++ -std=c++11 -o translate type2.cpp translate.cpp
|
2019-03-29 21:07:01 +01:00
|
|
|
|
|
|
|
clean:
|
2019-03-30 18:09:44 +01:00
|
|
|
rm -f oss-fuzz-client fuzz-client translate
|