A Simple Makefile Example

**CPP_SIMPLE** is a simple example of how a makefile can be
used to manage a set of C++ files.

The underlying task is to approximate the integral of a
function **F(T)** using the midpoint rule. The program
to do this is broken up into three C++ files and a header file:

- cpp_simple.cpp contains the main program, which tries the midpoint rule three times, each time using more intervals.
- midpoint.cpp carries out the midpoint rule to approximate the integral of a function.
- f.cpp evaluates the function whose approximate integral is desired.
- cpp_simple.hpp the header file, which contains the interface to each routine.

- makefile contains the makefile for managing these files.
- cpp_simple_output.txt the output file.

You can go up one level to the MAKEFILES page.