handling parameters and generating Makefile