Added lib generation into the makefile.