#!/bin/sh DEBUG="" LIB="-lSDL2_gfx -lSDL2_ttf -lSDL2_image" [ ! -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/ascii" src/main.c $LIB `sdl2-config --cflags --libs` -lm $DEBUG