Lecture 7 Demos:


Third pass

queens.c, checkboard.c, printboard.c, queens.h, Makefile.

The make tool was designed to make building large software projects easier. Using rules written by the programmer, in addition to a large set of built-in rules, make determines which pieces of a large program need to be recompiled, and issues the commands to recompile them.

Running the command

compiles the program. It is also possible to explicitly trigger individual rules in the Makefile:

We also have the special rule

which deletes all compiled and temporary files. This gives you a clean slate; run make clean before submitting projects. Be careful what you add to the make clean rule, if anything.


Back