Added Makefile for each directory in lib.

This is runnable documentation.