Example Program Next Slide

Here, we will use a program that deals with some geometric shapes to illustrate writing a make file to compile a program.

The program is made up of 5 source files:

  • main.cpp, a main program.
  • Point.h, header file for the Point class.
  • Point.cpp, implementation file for the Point class.
  • Rectangle.h, header file for the Rectangle class.
  • Rectangle.cpp, implementation file for the Rectangle class.

These files are available to download.


BU CAS CS - Writing Make Files
Copyright © 1993-2000 by Robert I. Pitts <rip@bu.edu> All Rights Reserved.