|
|
|
|
Comment:
|
File: "hello.c" #include <stdio.h> int main( int argc, char* argv[] ) { printf( "Hello World !\n" ); } |
Command: gcc -c hello.c Result: hello.c ----> hello.o Command: gcc -o hello hello.o Result: hello.o ----> hello (executable command in UNIX) |
Therefore:
hello.o depends on (= is produced using) hello.c hello depends on (= is produced using) hello.o |
Targets: --------- hello depends on hello.o Command to update hello when hello.o is changed: gcc -o hello hello.o hello.o depends on hello.c Command to update hello.o when hello.c is changed: gcc -c hello.c |
|
Example:
|