Build a library and an executable