When you give make command then the makefile creates its files according to the functionality of makefile in current directory but if you want to make the resultant executable in your defined path then you have to define ‘install: ‘ label inside the makefile and after giving the make command give command make install then the resultant executable will go to your path OR you can directly give the command make install on your command prompt to make the executable on your path