#!/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