Class 10: Make Files Flashcards

1
Q

Is make only used to manage compilation of programs??

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Target

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Dependency

A

A file that is used as input to CREATE the target. A target often depends on several files. Thus dependencies above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Unix/Linux command

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

To run make, you you have to be in the directory in which the make file is in??

A

YESS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The command to run make on the Makefile in a direction

A

Make target
Note: target is also called section name or tag name, if no target is referenced, the first target in Makefile is used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can a .h file be a dependency

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does target all means

A

target ask means all targets currently defined in this file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Are make files Only used for compiling

A

No
Ex:
Install: main
Fp main /temp/Mainprogram

Install: target
Main: dependency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly