summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJonas Kohl <gitlab@jonaskohl.de>2024-08-29 17:00:11 +0200
committerJonas Kohl <gitlab@jonaskohl.de>2024-08-29 17:00:11 +0200
commit84ad096896e9948c722a957d07ed6868e252a9f7 (patch)
treeb8ad1afadd89f1dc7599436cfb0f7f5fb0c177b6 /build.sh
Initial commit
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh12
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