# Author Anyes Taffard (ataffard@cern.ch) # UCINtuple Ntuple root stand-alone makefile # # run with: # gmake -f Makefile.standalone # gmake -f Makefile.standalone clean # --- External configuration ---------------------------------- include $(ROOTSYS)/test/Makefile.arch # ------------------------------------------------------------- # General flags # ------------------------------------------------------------- PKG = Ntuple HDR = ../$(PKG) SRC = ../src OUTDIR = ../standalone # # compile/link everything # All : shlib shlib : lib$(PKG).so # # Sharelib for this package. # rootcint is use to generate root dictionary # If you add new classes, add them to before the line with the $(PKG)LinkDef # then add a line for each for the do_map # do_map adds to the .rootmap file the library dependencies that each class has # # if you just need to rebuild the library do : gmake shlib # lib$(PKG).so : $(HDR)/*.h $(SRC)/*.cxx @echo "Generating dictionary in $(OUTDIR)" @test -d $(OUTDIR) || mkdir $(OUTDIR) @rootcint -f $(OUTDIR)/$(PKG)Dict.cxx -c -p -I$(ROOTCFLAGS) \ -I.. -I../$(PKG) \ -DDebug \ $(HDR)/AnaCompositeParticle.h $(SRC)/AnaCompositeParticle.cxx \ $(HDR)/AnaParticle.h $(SRC)/AnaParticle.cxx \ $(HDR)/bTagDetail.h $(SRC)/bTagDetail.cxx \ $(HDR)/CaloCluster.h $(SRC)/CaloCluster.cxx \ $(HDR)/egDetail.h $(SRC)/egDetail.cxx \ $(HDR)/Electron.h $(SRC)/Electron.cxx \ $(HDR)/EMShower.h $(SRC)/EMShower.cxx \ $(HDR)/EmTauROI.h $(SRC)/EmTauROI.cxx \ $(HDR)/EMTrkMatch.h $(SRC)/EMTrkMatch.cxx \ $(HDR)/EnumList.h $(SRC)/EnumList.cxx \ $(HDR)/Event.h $(SRC)/Event.cxx \ $(HDR)/Jet.h $(SRC)/Jet.cxx \ $(HDR)/McTruth.h $(SRC)/McTruth.cxx \ $(HDR)/Met.h $(SRC)/Met.cxx \ $(HDR)/Muon.h $(SRC)/Muon.cxx \ $(HDR)/MuonROI.h $(SRC)/MuonROI.cxx \ $(HDR)/NtupleContainer.h $(SRC)/NtupleContainer.cxx \ $(HDR)/NtupleInterface.h $(SRC)/NtupleInterface.cxx \ $(HDR)/NtupleMetaData.h $(SRC)/NtupleMetaData.cxx \ $(HDR)/Particle.h $(SRC)/Particle.cxx \ $(HDR)/Photon.h $(SRC)/Photon.cxx \ $(HDR)/Tau.h $(SRC)/Tau.cxx \ $(HDR)/Track.h $(SRC)/Track.cxx \ $(HDR)/TrigEgammaEF.h $(SRC)/TrigEgammaEF.cxx \ $(HDR)/TrigEleL2.h $(SRC)/TrigEleL2.cxx \ $(HDR)/TrigEmClusterL2.h $(SRC)/TrigEmClusterL2.cxx \ $(HDR)/Trigger.h $(SRC)/Trigger.cxx \ $(HDR)/TrigIdTrackL2.h $(SRC)/TrigIdTrackL2.cxx \ $(HDR)/TrigMuCombL2.h $(SRC)/TrigMuCombL2.cxx \ $(HDR)/TrigMuFastL2.h $(SRC)/TrigMuFastL2.cxx \ $(HDR)/TrigMuIsolL2.h $(SRC)/TrigMuIsolL2.cxx \ $(HDR)/TrigMuonEF.h $(SRC)/TrigMuonEF.cxx \ $(HDR)/Vertex.h $(SRC)/Vertex.cxx \ $(HDR)/NtupleDict.h \ $(HDR)/$(PKG)LinkDef.h @echo "Building library $(OUTDIR)/lib$(PKG).so ..." $(CXX) $(ROOTLDFLAGS) $(SOFLAGS) $(CXXFLAGS) \ -I.. -I$(OUTDIR) -I../$(PKG) -L/usr/lib $(OUTDIR)/$(PKG)Dict.cxx -o $(OUTDIR)/lib$(PKG).so # # Directives to gmake for cleaning # clean: @rm -f $(OUTDIR)/* libclean: @rm -f $(OUTDIR)/lib$(PKG).so binclean: @rm -f $(OUTDIR)/$(PKG) $(OUTDIR)/*.o