Dana Vrajitoru
C151 Multi-User Operating Systems

Homework 5

Due date: Tuesday, September 30, 2008. Display the content of the environment variable called PATH.

Ex. 1

Ex. 2 Write a Makefile compiling the file sum_array.cc that you copied into your directory for lab3. This Makefile should contain the following entries:

Add a comment at the beginning of the Makefile with your name, the date, and a small comment on what this Makefile is for. Verify that all the entries work, as well as "make" with no argument.

Send me the Makefile by email, as well as the

Ex. 3 Answer the following question in the email with the homework submission: what does the following compilation command do? Exmplain all the elements of the command:

g++ main.o cube.o -I/usr/include/gl -L/usr/lib/gl -lglut -o cube

Send me: From the lab: the Makefile created in class. From the homework: the file hw5.txt from exercise 1, the Makefile from exercise 2, and the answer to the question at exercise 3.