diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-07-03 22:02:56 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-07-03 22:02:56 -0500 |
| commit | 0ed6c602b14554a02f7782bd5e5635b1e9d9c195 (patch) | |
| tree | 54142376e4cedd1aeec259f811c04a2420a3213f /build.sh | |
init
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f90f790 --- /dev/null +++ b/build.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +DEBUG="" +LIB="-I tinyosc" + +[ ! -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" +[ ! -e "src/config.c" ] && cp src/config.def.c src/config.c; +clang -o bin/chat-loop src/main.c $LIB -lm $DEBUG +clang -o bin/type src/type.c $LIB -lm $DEBUG |
