aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorlamp2023-03-05 21:25:03 +0000
committerlamp2023-03-05 21:25:03 +0000
commitb6e7e454ed6242475163dcd534051897d3c9158c (patch)
tree8e923fed21eac6190999de9f4adee76d0f75c10f /build.sh
initmain
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..1f56aec
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+shopt -s globstar
+
+CC="lcc"
+OUT_NAME="out.gb"
+
+if $CC -o "$OUT_NAME" -Iinclude src/**/*.c; then
+ echo "Emitted: $OUT_NAME"
+else
+ echo "Build Failed"
+fi