4.5. Modifying the Makefile

Now that our code is all written, we must ensure it will be compiled into the final executable program. This is a matter of adding the adaptor modules we wrote to the OBJECTS makefile macro definition in Makefile. The example below shows the resulting definitions assuming that we have named our event readout adaptor CTraditionalEventSegment.cpp and our scaler adaptor CTraditionalScaler.cpp:


OBJECTS=Skeleton.o skeleton.o CTraditionalEventSegment.o \
        CTraditionalScaler.o
                

Naturally you will also need to add any objects for source files you need from your old Readout program to this definition. Do not add ReadoutMain.o to this list as the new framework is not compatibile with it and does not need it.