build.sh (427B)
1 #!/bin/bash 2 3 echo "Formatting.." 4 clang-format -i wavpcm.c 5 6 echo "Cleaning.." 7 rm -f ../../bin/wavpcm 8 9 echo "Building.." 10 mkdir -p ../../bin 11 cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined -lm wavpcm.c -o ../../bin/wavpcm 12 13 echo "Running.." 14 ../../bin/wavpcm 15 16 echo "Done."