2.5. Editing and using the Makefile

Once you have completed your modifications, and written your code, you need to be able to build it. The Makefile distributed with the skeleton is heavily commented. Most of the time you will simply have to tell the Makefile to build your objects and incorporate them into the Readout executable it builds.

If we assume that we've written two .cpp files and corresponding headers named: CCAENEventSegment.cpp and CSIS3820Scaler.cpp, We need to modify the OBJECTS definition to read as follows:

Example 2-19. Makefile modifications


                    ...
OBJECTS=Skeleton.o CCAENEventSegment.o CSIS3820Scaler.o
                    ...