Introduce Makefile and build it as a library.