aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..53e6e14
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,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