Warning: also my noweb-training program. Extract Makefile and compile with: $ notangle -Rmakefile sawsim.nw | sed 's/ /\t/' > Makefile $ make Run the unit tests with $ make check Depends on the GSL (GNU Scientific Library) development package. http://www.gnu.org/software/gsl/ This package is libgsl0-dev in Debian-based distributions.