aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-03-08 20:58:15 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-03-08 20:58:15 -0500
commit6d6027b5d3c35b474d5867007f2884d9b240ac5b (patch)
tree257674fa67866c65580e98c0b87ba36768b50851 /build.sh
parentccf51927cbe96442c8801ff2682dd1039eb30053 (diff)
renamed make to build.sh
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..48c5dcc
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+DEBUG=""
+LIB=""
+
+[ ! -d "bin" ] && mkdir bin
+
+while getopts "d" opt; do
+ case "$opt" in
+ d) DEBUG="-Wall -fsanitize=address -g"
+ ;;
+ esac
+done
+
+shift $((OPTIND-1))
+[ "${1:-}" = "--" ] && shift
+
+printf "\n\nmaking project\n"
+clang -o bin/shell src/main.c $LIB -lm $DEBUG