#!/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