diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-03-08 20:58:15 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-03-08 20:58:15 -0500 |
| commit | 6d6027b5d3c35b474d5867007f2884d9b240ac5b (patch) | |
| tree | 257674fa67866c65580e98c0b87ba36768b50851 /build.sh | |
| parent | ccf51927cbe96442c8801ff2682dd1039eb30053 (diff) | |
renamed make to build.sh
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 19 |
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 |
