added lib target in makefile

This makes a library (topl.cma and topl.cmxa).