I wanted to create a generic makefile that can take the source file name compile it, save it as the object file and executable file. Both files using the original source name. Thank you for your help.
./helloworld #I would like to input source outside the make file.
gcc -Wall helloworld.c -o helloworld #<==
#I would like makefile to automatically save both object and exec.
#as the source file name.