Decompose the program into libraries.
Add Makefile to build decomposed libraries.