#!/bin/sh
#sudo apt-get install libasound-dev libsndfile-dev libsamplerate-dev
./d.sh

javac -source 11 -target 11 -Xlint:all -deprecation *.java

java packets > /dev/null 2> io_cnst.h

for a in *.c ; do
  b="${a%.*}"
  echo compiling $b
  clang -O3 -Wall $b.c -o $b.bin -lasound -lsndfile -lsamplerate -lm
  done
