shithub: mp3dec

ref: 9fa044bfbbf0f5689e93368d19b75f2497847765
dir: /scripts/build.sh/

View raw version
_FILENAME=${0##*/}
CUR_DIR=${0/${_FILENAME}}
CUR_DIR=$(cd $(dirname ${CUR_DIR}); pwd)/$(basename ${CUR_DIR})/

pushd $CUR_DIR/..

set -e

gcc -coverage -O0 -DMINIMP3_TEST -o minimp3 minimp3_test.c -lm
scripts/test.sh
gcov minimp3_test.c

gcc -O2 -g -Wall -Wextra -fno-asynchronous-unwind-tables -fno-stack-protector -ffunction-sections \
-fdata-sections -Wl,--gc-sections -o minimp3 minimp3_test.c -lm
scripts/test.sh