Converted towards makefile to be more flexible