CSCI 3190 (Directed Study (Unix Power Tools)), Spring 2004:
Homework 7

Assigned:
April 12, 2004.

Due:
April 19, 2004, at 5pm.

Credit:
10 points.

Reading

Read about the following topics, either by skimming the mentioned online references or in another book or reference.

  1. Basics of the make utility. Covered in the GNU Make Manual. This is a huge manual, so just read the following:

Problems

Answer the following questions. You may write out your answers by hand or using a word processor or other program, but please submit hard copy, either in class or in my mailbox in the department office. Answers to most questions will involve experimentation on a Unix or Linux system. You are free to use any appropriate system; if you use something other than Red Hat Linux please tell me what.

  1. (10 points) Suppose you have a C program consisting of the following files:

    Write a makefile that:

    You can make use of the implicit rules defined by make if they will help. (They probably will.)

    If you want to do some testing of your makefile, create minimal files as described above. Notice that the command touch can be used to change a file's timestamp without opening it in an editor, etc.



Berna Massingill
2004-04-12