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

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

build chatty.c
build server.c
build send.c