fuzz-client: Added compile target for libfuzzer client
This commit is contained in:
parent
e98ddb6cc5
commit
5f364ca30d
|
@ -1,6 +1,9 @@
|
||||||
|
|
||||||
# oss-fuzz client
|
|
||||||
#
|
#
|
||||||
|
# fuzzer clients
|
||||||
|
# ====================
|
||||||
|
#
|
||||||
|
# Local libfuzzer client:
|
||||||
|
# make CXX=clang++-6.0 CXXFLAGS="-fsanitize=address" fuzz-client
|
||||||
|
|
||||||
CPPCHECK_DIR=..
|
CPPCHECK_DIR=..
|
||||||
INCLUDE_DIR=-I ${CPPCHECK_DIR}/lib -I ${CPPCHECK_DIR}/externals/simplecpp -I ${CPPCHECK_DIR}/externals/tinyxml
|
INCLUDE_DIR=-I ${CPPCHECK_DIR}/lib -I ${CPPCHECK_DIR}/externals/simplecpp -I ${CPPCHECK_DIR}/externals/tinyxml
|
||||||
|
@ -8,11 +11,14 @@ SRC_FILES=main.cpp type2.cpp ${CPPCHECK_DIR}/externals/simplecpp/simplecpp.cpp $
|
||||||
|
|
||||||
all: oss-fuzz-client translate
|
all: oss-fuzz-client translate
|
||||||
|
|
||||||
oss-fuzz-client:
|
oss-fuzz-client: main.cpp type2.cpp type2.h
|
||||||
${CXX} -std=c++11 -g -DNO_MAIN ${CXXFLAGS} -o oss-fuzz-client ${INCLUDE_DIR} ${SRC_FILES} -lFuzzingEngine
|
${CXX} -std=c++11 -g ${CXXFLAGS} -o oss-fuzz-client ${INCLUDE_DIR} ${SRC_FILES} -lFuzzingEngine
|
||||||
|
|
||||||
translate:
|
fuzz-client: main.cpp type2.cpp type2.h
|
||||||
|
${CXX} -std=c++11 -g -O1 ${CXXFLAGS} -fsanitize=fuzzer -o fuzz-client ${INCLUDE_DIR} ${SRC_FILES}
|
||||||
|
|
||||||
|
translate: translate.cpp type2.cpp type2.h
|
||||||
g++ -o translate type2.cpp translate.cpp
|
g++ -o translate type2.cpp translate.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f oss-fuzz-client translate
|
rm -f oss-fuzz-client fuzz-client translate
|
||||||
|
|
Loading…
Reference in New Issue