aboutsummaryrefslogtreecommitdiff
path: root/make
blob: fff0af08f0faff61ae0fe45304e0faa044ef4ccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

DEBUG=""
LIB=""

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