Course Homepage

HW4

  1. Do Makefiles use tab characters or space characters for indentation?

  2. Consider the following rule

    hello: hello.c
        gcc -o hello hello.c
    1. What is the target?
    2. What is the prerequisite?
    3. What is the recipe?
  3. In the above rule, what happens if you run make twice in a row, assuming that hello.c builds successfully the first time?