Class 10: Make Files Flashcards
Is make only used to manage compilation of programs??
No, make can also be used for other things as well
Make allows for reusability of code because source code for functions can be kept in separate files and the file can be called and compiled in any program for which it is useful
Target
Is usually the name of a file that is generated by a program. Examples of targets are executable or object files. A target can also be the name of an action to carry out such as clean.
Dependency
A file that is used as input to CREATE the target. A target often depends on several files. Thus dependencies above
Unix/Linux command
is and action that make carries out. More than one command, either on the same line or each of its own line can be listed.
To run make, you you have to be in the directory in which the make file is in??
YESS
The command to run make on the Makefile in a direction
Make target
Note: target is also called section name or tag name, if no target is referenced, the first target in Makefile is used
Can a .h file be a dependency
Yes
What does target all means
target ask means all targets currently defined in this file
Are make files Only used for compiling
No
Ex:
Install: main
Fp main /temp/Mainprogram
Install: target
Main: dependency