Fork me on GitHub

Changeset 2eb25b1 in git for doc/genMakefile.tcl


Ignore:
Timestamp:
Dec 9, 2014, 4:37:55 PM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
624dc48
Parents:
ad3b7ce
Message:

add examples/StandaloneHepMC.cpp and libDelphesNoFastJet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/genMakefile.tcl

    rad3b7ce r2eb25b1  
    5353}
    5454
    55 proc dictDeps {dictVar args} {
     55proc dictDeps {dictPrefix args} {
    5656
    5757  global prefix suffix srcSuf objSuf pcmSuf
     
    7878  }
    7979
    80   puts -nonewline "${dictVar} += $suffix"
    81   puts [join $dictSrcFiles $suffix]
    82   puts {}
    83 
    84   puts -nonewline "${dictVar}_OBJ += $suffix"
     80  puts -nonewline "${dictPrefix}_OBJ += $suffix"
    8581  puts [join $dictObjFiles $suffix]
    8682  puts {}
    8783
    88   puts -nonewline "${dictVar}_PCM += $suffix"
     84  puts -nonewline "${dictPrefix}_PCM += $suffix"
    8985  puts [join $dictPcmFiles $suffix]
    9086  puts {}
     
    9894
    9995  set srcObjFiles {}
     96  set srcObjFilesFastJet {}
    10097  set srcObjFilesPythia8 {}
    10198
     
    106103    if {$fileName == "modules/PileUpMergerPythia8.cc"} {
    107104      lappend srcObjFilesPythia8 $srcObjName$objSuf
     105    } elseif {[string match {modules/FastJet*.cc} $fileName] && $srcPrefix != {FASTJET}} {
     106      continue
    108107    } else {
    109108      lappend srcObjFiles $srcObjName$objSuf
     
    246245###
    247246
     247NOFASTJET = libDelphesNoFastJet.$(DllSuf)
     248NOFASTJETLIB = libDelphesNoFastJet.lib
     249
    248250DELPHES = libDelphes.$(DllSuf)
    249251DELPHESLIB = libDelphes.lib
     
    282284dictDeps {DELPHES_DICT} {classes/ClassesLinkDef.h} {modules/ModulesLinkDef.h} {external/ExRootAnalysis/ExRootAnalysisLinkDef.h}
    283285
     286dictDeps {FASTJET_DICT} {modules/FastJetLinkDef.h}
     287
    284288dictDeps {DISPLAY_DICT} {display/DisplayLinkDef.h}
    285289
    286 sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} {external/fastjet/contribs/*/*.cc} {external/Hector/*.cc}
     290sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/Hector/*.cc}
     291
     292sourceDeps {FASTJET} {modules/FastJet*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} {external/fastjet/contribs/*/*.cc}
    287293
    288294sourceDeps {DISPLAY} {display/*.cc}
     
    297303
    298304ifeq ($(ROOT_MAJOR),6)
    299 all: $(DELPHES) $(DELPHES_DICT_PCM) $(EXECUTABLE)
     305all: $(NOFASTJET) $(DELPHES) $(DELPHES_DICT_PCM) $(FASTJET_DICT_PCM) $(EXECUTABLE)
    300306display: $(DISPLAY) $(DISPLAY_DICT_PCM)
    301307else
    302 all: $(DELPHES) $(EXECUTABLE)
     308all: $(NOFASTJET) $(DELPHES) $(EXECUTABLE)
    303309display: $(DISPLAY)
    304310endif
    305311
    306 $(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
     312$(NOFASTJET): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
    307313        @mkdir -p $(@D)
    308314        @echo ">> Building $@"
     
    321327ifeq ($(PLATFORM),win32)
    322328        @bindexplib $* $^ > $*.def
     329        @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(NOFASTJETLIB)
     330        @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@
     331        @$(MT_DLL)
     332else
     333        @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
     334        @$(MT_DLL)
     335endif
     336endif
     337endif
     338
     339$(DELPHES): $(DELPHES_DICT_OBJ) $(FASTJET_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(TCL_OBJ)
     340        @mkdir -p $(@D)
     341        @echo ">> Building $@"
     342ifeq ($(ARCH),aix5)
     343        @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^
     344else
     345ifeq ($(PLATFORM),macosx)
     346# We need to make both the .dylib and the .so
     347        @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
     348ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
     349ifeq ($(MACOSX_MINOR),4)
     350        @ln -sf $@ $(subst .$(DllSuf),.so,$@)
     351endif
     352endif
     353else
     354ifeq ($(PLATFORM),win32)
     355        @bindexplib $* $^ > $*.def
    323356        @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB)
    324357        @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@
     
    331364endif
    332365
    333 $(DISPLAY): $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ)
     366$(DISPLAY): $(DELPHES_DICT_OBJ) $(FASTJET_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ)
    334367        @mkdir -p $(@D)
    335368        @echo ">> Building $@"
     
    359392
    360393clean:
    361         @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core
     394        @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core
    362395        @rm -rf tmp
    363396
    364397distclean: clean
    365         @rm -f $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE)
     398        @rm -f $(NOFASTJET) $(NOFASTJETLIB) $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(FASTJET_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE)
    366399
    367400dist:
     
    396429        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    397430
     431$(FASTJET_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
     432        @mkdir -p $(@D)
     433        @echo ">> Compiling $<"
     434        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
     435
    398436$(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
    399437        @mkdir -p $(@D)
     
    406444        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    407445
     446$(FASTJET_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
     447        @mkdir -p $(@D)
     448        @echo ">> Compiling $<"
     449        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
     450
    408451$(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
    409452        @mkdir -p $(@D)
     
    421464        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    422465
    423 $(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
     466$(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(FASTJET_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(TCL_OBJ)
    424467        @echo ">> Building $@"
    425468        @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@
Note: See TracChangeset for help on using the changeset viewer.