Source file: hello.c
|
| gcc -c hello.c
|
V
Object file: hello.o
|
| gcc -o hello hello.o
|
V
Executable: hello
|
hello: hello.o # Meaning: target hello depends of hello.o <TAB> gcc -o hello hello.o # Command to update the target hello hello.o: hello.c # Meaning: target hello.o depends of hello.c <TAB> gcc -c hello.c # Command to update the target hello.o |
Comment:
|
The Make file must be stored in the directory where you store your C program files and header files
|