2016-10-20 07:35:12 +00:00
|
|
|
#!/bin/bash -eu
|
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# build the library.
|
2016-11-21 20:39:31 +00:00
|
|
|
pmake -C libteken teken_state.h
|
|
|
|
CFLAGS="$CFLAGS -D__unused=" pmake -C libteken libteken.a
|
2016-10-20 07:35:12 +00:00
|
|
|
|
2016-11-21 20:39:31 +00:00
|
|
|
$CC $CFLAGS -c $SRC/libteken_fuzzer.c -o $SRC/libteken_fuzzer.o -I.
|
|
|
|
$CXX $CXXFLAGS $SRC/libteken_fuzzer.o \
|
2016-11-18 19:16:38 +00:00
|
|
|
-o $OUT/libteken_fuzzer \
|
2016-12-07 19:41:08 +00:00
|
|
|
-lFuzzingEngine libteken/libteken.a
|