In week 1 lecture, Prof Malan explained that the make
command in the terminal window will, by default, look for the source code file named hello.c
. But will it look for hello.c
even if i write, say, make change.c
where suppose change.c
is name of the source code that i have created in gedit ?
1 Answer
If you type make filename
, it will indeed look for a file called filename.c
, unless it has instructions in a makefile (named makefile
, more in later lessons) to do something different. Whatever filename
is, it will look for a file with that name, followed by .c
. Now, if you make the mistake of trying to make foobar.c
, it will choke. The .c
in the make command will cause the problem.
If this answers your question, please click the check mark to accept this and remove the question from the unanswered pool. Let's keep up on forum maintenance. ;-)