aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 4548af84b3f10d84f430b05704158de3a5bc1985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
build () {
    (
        set -x
        gcc -ggdb -Wall -pedantic -std=c99 -I./external -o ${1%.c} $@
    )
}

if [ "$1" ]; then
    build "$1"
    exit
fi

[ -x ./external/keyboard ] || build external/keyboard.c
build chatty.c
build server.c
build send.c