|
|
|
Source file: hello.c <==== source file
|
| gcc -c hello.c
|
V
Object file: hello.o
|
| gcc -o hello hello.o
|
V
Executable: hello <==== end product
|
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 |
How to run the program:
|
|
|
For this reason, the first target is usually the end product program of the C project