aboutsummaryrefslogtreecommitdiff
path: root/v2/build.sh
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@keyfried.com>2024-10-24 23:14:18 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-24 23:14:18 +0200
commit2b503354eb8bf6f71b03ee93a985f7668a9a8fb5 (patch)
treeb59dfad2b36a8cb49fda7d22145ba711d294e894 /v2/build.sh
parentba27f88d86a63d091cfcc9315c132b530e78c5c1 (diff)
Initial draft for v2
This is a rewrite of v1 using arena's as memory allocators. The other great difference is using wide strings by default (wchar_t) because that will be needed in the future to print pretty UIs.
Diffstat (limited to 'v2/build.sh')
-rwxr-xr-xv2/build.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/v2/build.sh b/v2/build.sh
new file mode 100755
index 0000000..53e6e14
--- /dev/null
+++ b/v2/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