uxn/etc/utos/build.sh

17 lines
479 B
Bash
Raw Permalink Normal View History

2021-05-03 18:13:12 -04:00
#!/bin/bash
echo "Formatting.."
clang-format -i utos.c
echo "Cleaning.."
rm -f ../../bin/utos
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 utos.c -o ../../bin/utos
echo "Running.."
../../bin/utos ../../projects/sounds/pad1.ss8 ../../projects/sounds/pad1.pcm
echo "Done."