Examples for using libsonlib-dev
================================

sonlib-example.c
    Minimal program demonstrating the sonLib API (stList, stMatrix and
    neighbour joining via the quicktree library).

sonlib-cutest-example.c
    The same functionality written as a CuTest unit test.  It shows how
    downstream projects can use libcutest-dev together with sonLib.

Build and run the examples with:

    make
    make check

The Makefile builds sonlib-example against both the shared and the
static libsonlib.  Linking against the shared library needs only

    -lsonlib

because libsonlib.so links libquicktree.so.2 itself.  The static archive
libsonlib.a leaves the quicktree symbols unresolved, so linking against
it additionally needs

    -lquicktree

The package's autopkgtest uses the same Makefile and therefore checks
both ways.
