#--------------------------------------------------- CXXFLAGS = -O -pipe -Wall -Woverloaded-virtual -fPIC -I$(ROOTSYS)/include CDBFLAGS = -g -pipe -Wall -Woverloaded-virtual -I$(ROOTSYS)/include LDFLAGS = -g SOFLAGS = -shared LD = g++ ROOTLIBS = $(shell root-config --libs) ROOTGLIBS = $(shell root-config --glibs) LIBS = $(ROOTLIBS) EXTRA_LIBS = -lsunmath -lcomplex GLIBS = $(ROOTGLIBS) -L/usr/X11R6/lib -lXpm -lX11 EXTRA_GLIBS = -lsunmath -lcomplex OBJS = TThreeVectorReal.o TThreeVectorRealDict.o \ TThreeVectorComplex.o TThreeVectorComplexDict.o \ TFourVectorReal.o TFourVectorRealDict.o \ TFourVectorComplex.o TFourVectorComplexDict.o \ TLorentzTransform.o TLorentzTransformDict.o \ TLorentzBoost.o TLorentzBoostDict.o \ TThreeRotation.o TThreeRotationDict.o \ TPauliSpinor.o TPauliSpinorDict.o \ TPauliMatrix.o TPauliMatrixDict.o \ TDiracSpinor.o TDiracSpinorDict.o \ TDiracMatrix.o TDiracMatrixDict.o \ TPhoton.o TPhotonDict.o \ TLepton.o TLeptonDict.o \ TCrossSection.o TCrossSectionDict.o .SUFFIXES: .so .cxx PROGRAM = myroot all: $(PROGRAM) .cxx.o:; @g++ -c $(CXXFLAGS) $< .o.so:; @echo "Building" $@ @$(LD) $(SOFLAGS) $< -o $@ @echo "done" $(PROGRAM): main.o $(OBJS) @echo "Linking $(PROGRAM) ..." @$(LD) $(LDFLAGS) main.o $(OBJS) $(GLIBS) -o $(PROGRAM) @echo "done" debug.o: Compton.C debug: debug.o $(OBJS) @echo "Linking debug ..." @$(LD) $(LDFLAGS) $< $(OBJS) $(GLIBS) -o $@ @echo "done" clean:; @rm -f $(OBJS) core *Dict.* libdev.so: $(OBJS) @echo "Building shared library ..." @$(LD) $(SOFLAGS) $(OBJS) -o $@ @echo "done" TThreeVectorRealDict.cxx: TThreeVectorReal.h TThreeVectorRealLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TThreeVectorComplexDict.cxx: TThreeVectorComplex.h TThreeVectorComplexLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TFourVectorRealDict.cxx: TFourVectorReal.h TFourVectorRealLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TFourVectorComplexDict.cxx: TFourVectorComplex.h TFourVectorComplexLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TLorentzTransformDict.cxx: TLorentzTransform.h TLorentzTransformLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TLorentzBoostDict.cxx: TLorentzBoost.h TLorentzBoostLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TThreeRotationDict.cxx: TThreeRotation.h TThreeRotationLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TPauliSpinorDict.cxx: TPauliSpinor.h TPauliSpinorLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TPauliMatrixDict.cxx: TPauliMatrix.h TPauliMatrixLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TDiracSpinorDict.cxx: TDiracSpinor.h TDiracSpinorLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TDiracMatrixDict.cxx: TDiracMatrix.h TDiracMatrixLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TPhotonDict.cxx: TPhoton.h TPhotonLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TLeptonDict.cxx: TLepton.h TLeptonLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TCrossSectionDict.cxx: TCrossSection.h TCrossSectionLinkDef.h @echo Generating $@ @rootcint -f $@ -c $^ TThreeVectorReal.o: TThreeVectorReal.h TThreeVectorReal.cxx TThreeVectorComplex.o: TThreeVectorComplex.h TThreeVectorComplex.cxx \ TThreeVectorReal.h TFourVectorReal.o: TFourVectorReal.h TFourVectorReal.cxx \ TThreeVectorReal.h TFourVectorComplex.o: TFourVectorComplex.h TFourVectorComplex.cxx \ TThreeVectorComplex.h TThreeVectorReal.h \ TFourVectorReal.h TLorentzTransform.o: TLorentzTransform.h TLorentzTransform.cxx \ TLorentzBoost.h TThreeRotation.h \ TThreeVectorReal.h TThreeVectorComplex.h \ TFourVectorReal.h TFourVectorComplex.h TLorentzBoost.o: TLorentzBoost.h TLorentzBoost.cxx \ TThreeRotation.h TLorentzTransform.h \ TThreeVectorReal.h TThreeVectorComplex.h \ TFourVectorReal.h TFourVectorComplex.h TThreeRotation.o: TThreeRotation.h TThreeRotation.cxx \ TLorentzTransform.h \ TThreeVectorReal.h TThreeVectorComplex.h \ TFourVectorReal.h TFourVectorComplex.h TPauliSpinor.o: TPauliSpinor.h TPauliSpinor.cxx \ TPauliMatrix.h \ TLorentzTransform.h TLorentzBoost.h TThreeRotation.h \ TThreeVectorComplex.h TThreeVectorReal.h \ TFourVectorComplex.h TFourVectorReal.h TPauliMatrix.o: TPauliMatrix.h TPauliMatrix.cxx \ TPauliSpinor.h \ TLorentzTransform.h TLorentzBoost.h TThreeRotation.h \ TThreeVectorComplex.h TThreeVectorReal.h \ TFourVectorComplex.h TFourVectorReal.h TDiracSpinor.o: TDiracSpinor.h TDiracSpinor.cxx \ TDiracMatrix.h \ TPauliSpinor.h TPauliMatrix.h \ TLorentzTransform.h TLorentzBoost.h TThreeRotation.h \ TFourVectorComplex.h TFourVectorReal.h \ TThreeVectorComplex.h TThreeVectorReal.h TDiracMatrix.o: TDiracMatrix.h TDiracMatrix.cxx \ TDiracSpinor.h \ TPauliSpinor.h TPauliMatrix.h \ TLorentzTransform.h TLorentzBoost.h TThreeRotation.h \ TFourVectorComplex.h TFourVectorReal.h \ TThreeVectorComplex.h TThreeVectorReal.h TPhoton.o: TPhoton.h TPhoton.cxx \ TPauliMatrix.h TPauliSpinor.h \ TLorentzTransform.h TLorentzBoost.h TThreeRotation.h \ TThreeVectorComplex.h TThreeVectorReal.h \ TFourVectorComplex.h TFourVectorReal.h TLepton.o: TLepton.h TLepton.cxx \ TDiracMatrix.h TDiracSpinor.h \ TPauliSpinor.h TPauliMatrix.h \ TLorentzTransform.h TLorentzBoost.h TThreeRotation.h \ TFourVectorComplex.h TFourVectorReal.h \ TThreeVectorComplex.h TThreeVectorReal.h TCrossSection.o: TCrossSection.h TCrossSection.cxx \ TLepton.h TPhoton.h \ TDiracMatrix.h TDiracSpinor.h \ TPauliSpinor.h TPauliMatrix.h \ TLorentzTransform.h TLorentzBoost.h TThreeRotation.h \ TFourVectorComplex.h TFourVectorReal.h \ TThreeVectorComplex.h TThreeVectorReal.h #---------------------------------------------------