1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env sh if [ -f a.out ]; then rm a.out fi cc ./src/sandborb.c ./src/sandbird.c -I /opt/homebrew/include/lua5.4 ./src/sandbird.h -std=c99 -pedantic -Wall -Wextra -llua if [ -f a.out ]; then ./a.out else echo "Build failed" fi