Lab 8
Links, Makefiles
and
Character Processing

Objectives

In this lab we will look at tools and techniques to make our job as programmers easier: using symbolic links to share source and header files, and using make to automate compilation of the code. We will use the roman number program as our example. You will then get a chance to modify the roman program, and to work on another small character based program. You should begin by creating a new directory called Lab8 in your EE160/Labs directory (which you have created in previous labs). All of the program files you write for this lab should be in this Lab8 directory. To begin this lab, the TA will go over the concepts and commands for using symbolic links and makefiles.

Programs

What You Turn In

Use the "grade" command to turn in the all of the source files (.c and .h files) in your Lab8 directory. Your command will look like the following. If you are in Section 001 use:

           grade -lab8s1,ee160  *.c *.h

If you are in Section 002 use:

           grade -lab8s2,ee160  *.c *.h

If you are in Section 003 use:

           grade -lab8s3,ee160  *.c *.h

If you are in Section 004 use:

           grade -lab8s4,ee160  *.c *.h

NOTE: this command will send in ALL files named with .c and .h extensions in the current directory which are really your files. The grade command will give you a message for files that are links and not submit the files - that is ok, we only want the files which you wrote. You should verify that you turned in things successfully, which you can do with the command (which simply leaves the file names off from the previous command).

           grade -lab8s1,ee160

           OR

           grade -lab8s2,ee160

           OR

           grade -lab8s3,ee160

NOTE: after the files are prepared for grading, you will no longer be able to see your file listing using the above command. NOTE: BE CAREFUL to use the correct form of the grade command given above. If you do not, your files will be sent to the wrong place, and we will not guarantee we will find them for grading.