summary refs log tree commit diff
path: root/build.sh
blob: 3dc4712070cf97837aa95f36dc6757ae65e51965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e; # exit on error

#CC="x86_64-unknown-linux-musl-gcc"
CC="gcc"

roll_print() { printf "\t\t%s\t%s\n" "$1" "$2"; }

for i in fdwatcher network parent child main; do
	roll_print "CC" "$i.o"
	"$CC" -Wall -pedantic -std=c99 -I. -c -o "$i.o" "$i.c"
done

"$CC" -static -o aura fdwatcher.o network.o parent.o child.o main.o
strip aura