Copyright © tutorialspoint.com
It is very common that a final binary will be dependent on various source code and source header files. Dependencies are important because they tell to make about the source for any target. Consider the following example
Here we are telling to make that hello is dependent on main.o, factorial.o and hello.o so whenever there is a change in any of these object files then make will take action. Same time we would have to tell to make how to prepare .o files so we would have to define those dependencies also as follows
|
Copyright © tutorialspoint.com