aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 7301bc4ab1c9f0b21fb00ef68da8a99598abbe07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env sh

set -xe

CFLAGS="-Wall -Wextra -std=c11 -ggdb -fsanitize=address -fsanitize=undefined"
SRC="vec.c symtable.c tag.c constructor.c sys.c main.c"
OUT="alisp.out"

build() {
    cc $CFLAGS -o $OUT $SRC;
}

run() {
    ./$OUT;
}

build

if [ "$1" = "run" ]
then
    run
fi