Take out dependencies and objects of compilation from src folder to a new one. Create a new folder obj and modify makefile.