CS246 Lecture Notes - Lecture 13: Os 2200

105 views2 pages

Document Summary

But if only one or a few of those files have changed, then only those need to be re-compiled before compiling the executable. There is a command called make which helps us to maintain and track changes for a group of programs. It helps us to figure out the most efficient way to compile a program. If book. cc or book. h [dependences] has last modified time later than book. o [target] then make will just rebuild. Suppose main. o depends on book. o. book. o depends on book. h and book. cc. Thus if book. h or book. cc is updated, book. o is updated and this main. o is updated make clean removes everything makefile supports variables. The mmd flag for g++ will produce textbook. d which will have all the dependencies. So you don"t even have to write the dependecies yourself, there"s a command for it. Use -include variable to read the content and insert it in the variable.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents