CXXFLAGS = -I`root-config --incdir` `root-config --glibs` -Wall -g CC = g++ RM = rm OBJ = openFits.o discriminator.o zerosearch.o factfir.o \ DrsCalibration.o SpikeRemoval.o rootfilehandler.o pixel.o \ pixelsum.o templateextractors.o OBJ2 = openFits.o discriminator.o zerosearch.o factfir.o \ DrsCalibration.o SpikeRemoval.o rootfilehandler.o pixel.o \ pixelsum.o templateextractors.o BINNAME = pulseoverlay BINNAME2 = pulsetemplate $(BINNAME): $(OBJ) FPulseOverlay.C $(CC) $(CXXFLAGS) FPulseOverlay.C $(OBJ) -o $@ $(BINNAME2): $(OBJ2) FCalcPulseTemplate.C $(CC) $(CXXFLAGS) FCalcPulseTemplate.C $(OBJ2) -o $@ openFits.o : ../openFits.c ../openFits.h ../fits.h ../izstream.h $(CC) $(CXXFLAGS) -c $< -o $@ discriminator.o : ../discriminator.C ../discriminator.h $(CC) $(CXXFLAGS) -c $< -o $@ zerosearch.o : ../zerosearch.C ../zerosearch.h $(CC) $(CXXFLAGS) -c $< -o $@ factfir.o : ../factfir.C ../factfir.h $(CC) $(CXXFLAGS) -c $< -o $@ DrsCalibration.o : ../DrsCalibration.C ../DrsCalibration.h $(CC) $(CXXFLAGS) -c $< -o $@ SpikeRemoval.o : ../SpikeRemoval.C ../SpikeRemoval.h $(CC) $(CXXFLAGS) -c $< -o $@ rootfilehandler.o : rootfilehandler.C rootfilehandler.h $(CC) $(CXXFLAGS) -c $< -o $@ pixel.o : pixel.C pixel.h $(CC) $(CXXFLAGS) -c $< -o $@ pixelsum.o : pixelsum.C pixelsum.h $(CC) $(CXXFLAGS) -c $< -o $@ templateextractors.o : templateextractors.C templateextractors.h $(CC) $(CXXFLAGS) -c $< -o $@ all: $(BINNAME) clean: $(RM) *.o