Makefile Generator is a lightweight program to generate a "Makefile" in your C/C++ source directory.
wget https://raw.githubusercontent.com/lukashh6/makefile-generator/master/setup.sh && bash setup.sh
Simply change your directory to your C/C++ source directory. Then, type this on your terminal
generate [output_name]