diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d2cd839 --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir -p build + +rm -rf build/* + +gcc -o build/main main.c includes/*.c -Werror=incompatible-pointer-types + +if [ "$1" = "--run" ]; then + chmod +x ./build/main + ./build/main +fi |