2019-03-29 21:07:01 +01:00
|
|
|
#
|
2019-03-30 18:09:44 +01:00
|
|
|
# fuzzer clients
|
|
|
|
# ====================
|
|
|
|
#
|
|
|
|
# Local libfuzzer client:
|
2023-02-25 15:40:12 +01:00
|
|
|
# make CXX=clang++-6.0 CXXFLAGS="-fsanitize=address" LIB_FUZZING_ENGINE="-fsanitize=fuzzer" oss-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
|
2020-11-16 09:11:08 +01:00
|
|
|
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
|
|
|
|
2019-03-30 18:09:44 +01:00
|
|
|
oss-fuzz-client: main.cpp type2.cpp type2.h
|
2020-04-01 18:02:25 +02:00
|
|
|
${CXX} -std=c++11 -g ${CXXFLAGS} -o oss-fuzz-client ${INCLUDE_DIR} ${SRC_FILES} ${LIB_FUZZING_ENGINE}
|
2019-03-30 18:09:44 +01:00
|
|
|
|
|
|
|
translate: translate.cpp type2.cpp type2.h
|
2020-04-01 18:02:25 +02:00
|
|
|
${CXX} -std=c++11 -g ${CXXFLAGS} -o translate type2.cpp translate.cpp
|
2019-03-29 21:07:01 +01:00
|
|
|
|
|
|
|
clean:
|
2023-02-25 15:40:12 +01:00
|
|
|
rm -f oss-fuzz-client translate
|