Caveat Lector: These are some notes for a basic course on Unix which I co-taught many years ago at the University of Calgary. I keep them online in the hope that they may be useful to someone. However, they are not maintained. They may contain information specific to one (historic) network, which will not apply universally. Links may be broken.

[ home ]


Makefile Example for CPSC 001

Take a look at the makefile. It is fairly well commented. The other interesting file is mf.run, which shows the output of running make.

The other files in the directory don't do much, but they are used to illustrate how a makefile deals with a multi-file program. Files which are listed as 0 length don't contain anything; don't bother looking at them.

This directory contains the following files:

      Name                   Last modified     Size  Description

[DIR] Parent Directory 08-Sep-99 16:38 - Makefile: [   ] makefile 08-Sep-99 15:24 1k Output of running various make commands: [   ] mf.run 08-Sep-99 15:24 1k C Programs: [   ] helper.c 08-Sep-99 15:36 Ok [   ] life.c 08-Sep-99 15:36 1k Program header files: [   ] life.h 08-Sep-99 15:36 0k [   ] helper.h 08-Sep-99 15:36 0k Pre-processed files: [   ] life.i 08-Sep-99 15:36 1k [   ] helper.i 08-Sep-99 15:36 1k Object files: [   ] life.o 08-Sep-99 15:37 1k [   ] helper.o 08-Sep-99 15:37 1k Compiled program: [   ] life 08-Sep-99 15:37 4k