about summary refs log tree commit diff stats
path: root/lua/sandborb/build.sh
blob: b3d865658509bde0cb1c8d466357bebb296111a9 (plain) (blame)
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