uxn/etc/wavpcm/build.sh

17 lines
427 B
Bash
Raw Permalink Normal View History

2021-04-28 14:54:19 -04:00
#!/bin/bash
echo "Formatting.."
clang-format -i wavpcm.c
echo "Cleaning.."
rm -f ../../bin/wavpcm
echo "Building.."
mkdir -p ../../bin
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
echo "Running.."
../../bin/wavpcm
echo "Done."