Question

In: Computer Science

What are the prerequisites in the following makefile rule? store: main.o store.o $(CXX) $(CXXFLAGS) -o store...

What are the prerequisites in the following makefile rule?

store: main.o store.o
          $(CXX) $(CXXFLAGS) -o store main.o store.o
A.

main.o store.o

B.

store

C.

$(CXXFLAGS)

D.

$(CXX) $(CXXFLAGS) -o store main.o store.o

Solutions

Expert Solution

Answer  : The prerequisites in the following makefile rule

store: main.o store.o
          $(CXX) $(CXXFLAGS) -o store main.o store.o

is A. main.o store.o.

Explanation :

  • A simple makefile rule consists of format :

target ....... : prerequisites ........
recipe
   ...
   .....

  • store is a target file. A target is usually a file that is generated by a program or name of an action that you want to carry out.
  • main.o store.o is the prerequisites. A prerequisite is an input file that is used to create a target file. There can be many prerequisites that can be used for creating target file.
  • $(CXX) $(CXXFLAGS) are the variables. Variables are used to store text string which is defined once and they can then be substituted in program later. The use of variable to access it in program is in format $(variable_name).
  • -o store main.o store.o is recipe. A recipe is a rule with prerequisite which serves to create target file if any of the prerequisites change.
  • Above all explanation ,the last option is eliminated already.

Related Solutions

What are the prerequisites for confounding to occur? What is a confounding effect?
What are the prerequisites for confounding to occur? What is a confounding effect?
Consider the following binds Ca-O, C-O, K-O, O-O and N-O a Which bonds are polar covalent...
Consider the following binds Ca-O, C-O, K-O, O-O and N-O a Which bonds are polar covalent ? b Wich bonds are nonpolar Covalent c Which bonds are ionic ? d Arrange the covalent bonds in order of decreasing polarity
What Q will the firm produce when following the production rule?
P = $10 Q1 = 10      Q2 = 20 Q3 = 30 MC = 5 at Q1         MC = 10 at Q2                  MC = 15 at Q3. I want you to consider the production rule that says produce the level of output where MR = MC. What Q will the firm produce when following the production rule? When Q moves from 5 to 6 what is the relationship between MR and MC and thus what is happening to profit (You...
What is a per se rule? What is rule of reason? Give an example of uncompetitive...
What is a per se rule? What is rule of reason? Give an example of uncompetitive behavior that is judged under each principle. Give a rationale for the difference. Give an example of a potential violation of antitrust law that wouldn’t survive a rule of reason standard.
What was “Enlightened” about the rule of Catherine the Great; in what ways was her rule...
What was “Enlightened” about the rule of Catherine the Great; in what ways was her rule un-Enlightened?
Q1. A. What is the complexity of partition process in quick sort? O(1) O(logN) O(N) O(NlogN)...
Q1. A. What is the complexity of partition process in quick sort? O(1) O(logN) O(N) O(NlogN) B. Evaluate the following postfix expression. 2 3 4 + * C. In an array representation of heap, what are the parent node of a node a[10]? a[9] a[11] a[5] a[20] There is no easy way to access parent node in such representation. D. In an array representation of heap, what are the children nodes (if any) of a node a[10]? a[11] and a[12]...
1) In a project, activity A, B, and C are the predecessors (or prerequisites) of activity...
1) In a project, activity A, B, and C are the predecessors (or prerequisites) of activity D. The EFTs of activities A, B, and C are week 5, week 7, and week 4, what are the EST and EFT for activity D? Assume that activity D has 6-week task duration. Round your answer to the nearest integer. (Input EST in the first blank and EFT in the second blank.) 2)In a project, activity A, B, and C are the successors...
• Overview of Health Promotion Topic o Introduce cancer o Describe what cancer is o Explain...
• Overview of Health Promotion Topic o Introduce cancer o Describe what cancer is o Explain why it is a problem related to health and nursing o Provide references please, using APA format
What it is the Bagehot's Rule? Did the Central Bank of Us applied this rule in...
What it is the Bagehot's Rule? Did the Central Bank of Us applied this rule in 1930's? Could the Great Depression of 1930's be avoided or less severe?
What is meant by empirical rule or 68 – 95 – 99.7 rule in statistics ?
What is meant by empirical rule or 68 – 95 – 99.7 rule in statistics ?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT