ObjSuf = o SrcSuf = cxx ExeSuf = DllSuf = so EVENTLIB = $(EVENTO) OutPutOpt = -o ROOTCFLAGS = $(shell root-config --cflags) ROOTLIBS = $(shell root-config --libs) ROOTGLIBS = $(shell root-config --glibs) # Solaris CXX = CC CXXFLAGS = -O -KPIC LD = CC LDFLAGS = -g SOFLAGS = -G CXXFLAGS += $(ROOTCFLAGS) LIBS = $(ROOTLIBS) -lcomplex GLIBS = $(ROOTGLIBS) -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 \ complexDict.o PROGRAMS = myroot all: $(PROGRAMS) myroot: main.o $(OBJS) @echo "Linking myroot ..." $(LD) $(LDFLAGS) $< $(OBJS) $(GLIBS) $(OutPutOpt) $@ @echo "done" debug.o: tests.C debug: debug.o $(OBJS) @echo "Linking debug ..." @$(LD) $(LDFLAGS) $< $(OBJS) $(LIBS) $(OutPutOpt) $@ @echo "done" libdev.so: $(OBJS) @echo "Building shared library ..." @$(LD) $(SOFLAGS) $(LDFLAGS) $(OBJS) $(OutPutOpt) $@ @echo "done" clean: @rm -f $(OBJS) *Dict.* core .SUFFIXES: .$(SrcSuf) ### TThreeVectorReal.$(ObjSuf): TThreeVectorReal.h TThreeVectorRealDict.$(SrcSuf): TThreeVectorReal.h TThreeVectorRealLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TThreeVectorComplex.$(ObjSuf): TThreeVectorComplex.h TThreeVectorComplexDict.$(SrcSuf): TThreeVectorComplex.h TThreeVectorComplexLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TFourVectorReal.$(ObjSuf): TFourVectorReal.h TFourVectorRealDict.$(SrcSuf): TFourVectorReal.h TFourVectorRealLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TFourVectorComplex.$(ObjSuf): TFourVectorComplex.h TFourVectorComplexDict.$(SrcSuf): TFourVectorComplex.h TFourVectorComplexLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TLorentzTransform.$(ObjSuf): TLorentzTransform.h TLorentzTransformDict.$(SrcSuf): TLorentzTransform.h TLorentzTransformLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TLorentzBoost.$(ObjSuf): TLorentzBoost.h TLorentzBoostDict.$(SrcSuf): TLorentzBoost.h TLorentzBoostLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TThreeRotation.$(ObjSuf): TThreeRotation.h TThreeRotationDict.$(SrcSuf): TThreeRotation.h TThreeRotationLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TPauliSpinor.$(ObjSuf): TPauliSpinor.h TPauliSpinorDict.$(SrcSuf): TPauliSpinor.h TPauliSpinorLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TPauliMatrix.$(ObjSuf): TPauliMatrix.h TPauliMatrixDict.$(SrcSuf): TPauliMatrix.h TPauliMatrixLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TDiracSpinor.$(ObjSuf): TDiracSpinor.h TDiracSpinorDict.$(SrcSuf): TDiracSpinor.h TDiracSpinorLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TDiracMatrix.$(ObjSuf): TDiracMatrix.h TDiracMatrixDict.$(SrcSuf): TDiracMatrix.h TDiracMatrixLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ complexDict.$(SrcSuf): complex.h complexLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TPhoton.$(ObjSuf): TPhoton.h TPhotonDict.$(SrcSuf): TPhoton.h TPhotonLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TLepton.$(ObjSuf): TLepton.h TLeptonDict.$(SrcSuf): TLepton.h TLeptonLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ TCrossSection.$(ObjSuf): TCrossSection.h TCrossSectionDict.$(SrcSuf): TCrossSection.h TCrossSectionLinkDef.h @echo Generating dictionary $@ @$(ROOTSYS)/bin/rootcint -f $@ -c $^ .$(SrcSuf).$(ObjSuf): $(CXX) $(CXXFLAGS) -c $<