Unix Systems Programming: Lab 3 - Static & Shared Libraries



Due:           Friday, January 27, 2017 @ 5:00 pm

Purpose and Rationale

The purpose of this lab is to allow students to become comfortable with building Unix libraries.

Resources

FAQ (submission instructions and other useful stuff)

Important Reminder

Lecture 3 is the primary source for this lab.

All work should be done on a machine in the department's Linux cluster. You can refer to ssh for more information on how to log into a remote machine.

Marks Distribution

Exercise 1 12 points
TOTAL 12 points

LAB 3

Deliverables

Carefully follow the steps below.

    1. Please create a subdirectory ex, and include eight files

      - Five source code files : main.c, hello.c, bye.c, here.c, mylib.h
      - Two Make files, which will build an executable called : main
         Makefile1 : for building static library
         Makefile2 : for building shared library

      - One README file: it will contain two lines, the exact command line argument to build an executable called main
         make -f Makefile1 target
         make -f Makefile2 target


    2. When you are finished with your directory you will create a compressed archive file using tar (this utility stores your directory as a single file, then compresses its size.)
             tar -czvf   username.lab3.tgz   username.lab3

    3. You will email your file to our TA as an attachment. He will send an acknowledgement that your assignment has been received.

    4. To  Nicholas Flees (nickflees@uchicago.edu)
      Attachment  username.lab3.tgz
      Subject  CSPP51081-lab3