Fork me on GitHub

Changeset af9008e in git for doc


Ignore:
Timestamp:
Jul 4, 2013, 1:04:19 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
0d60c9d
Parents:
eced822
Message:

add DelphesCMSFWLite, DelphesProMC and DelphesPythia8 to Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/genMakefile.tcl

    reced822 raf9008e  
    3636    foreach file $list {puts -nonewline $suffix$file}
    3737    if {$command != {}} {
    38       puts ""
     38      puts {}
    3939      puts $command
    4040    }
    41     puts ""
     41    puts {}
    4242  } elseif {$force} {
    4343    puts -nonewline $firstLine
    4444    if {$command != {}} {
    45       puts ""
     45      puts {}
    4646      puts $command
    4747    }
    48     puts ""
     48    puts {}
    4949  }
    5050
     
    7373  puts -nonewline "${dictVar} = $suffix"
    7474  puts [join $dictSrcFiles $suffix]
    75   puts ""
     75  puts {}
    7676
    7777  puts -nonewline "${dictVar}_OBJ = $suffix"
    7878  puts [join $dictObjFiles $suffix]
    79   puts ""
     79  puts {}
    8080
    8181}
     
    103103  }
    104104
    105   puts -nonewline "${srcPrefix}_OBJ = $suffix"
     105  puts -nonewline "${srcPrefix}_OBJ += $suffix"
    106106  puts [join $srcObjFiles $suffix]
    107   puts ""
     107  puts {}
    108108
    109109  puts {ifeq ($(HAS_PYTHIA8),true)}
     
    111111  puts [join $srcObjFilesPythia8 $suffix]
    112112  puts {endif}
    113   puts ""
     113  puts {}
    114114}
    115115
     
    135135  puts -nonewline "TCL_OBJ = $suffix"
    136136  puts [join $srcObjFiles $suffix]
    137   puts ""
    138 }
    139 
    140 proc executableDeps {} {
     137  puts {}
     138}
     139
     140proc executableDeps {args} {
    141141
    142142  global prefix suffix objSuf exeSuf
    143143
    144   set executable [glob -nocomplain {readers/*.cpp} {converters/*.cpp} {examples/*.cpp}]
     144  set executable [eval glob -nocomplain $args]
    145145
    146146  set exeFiles {}
    147147
    148148  foreach fileName $executable {
    149     if {$fileName == "examples/DelphesCMSFWLite.cpp" || $fileName == "examples/DelphesProMC.cpp"} continue
     149    if {$fileName == "examples/DelphesProMC.cpp"} continue
    150150
    151151    regsub {\.cpp} $fileName {} exeObjName
     
    157157
    158158    puts "$exeName$exeSuf:$suffix$exeObjName$objSuf"
    159     puts ""
     159    puts {}
    160160
    161161    dependencies $fileName "$exeObjName$objSuf:$suffix$fileName"
     
    163163
    164164  if [info exists exeFiles] {
    165     puts -nonewline "EXECUTABLE = $suffix"
     165    puts -nonewline "EXECUTABLE += $suffix"
    166166    puts [join $exeFiles $suffix]
    167     puts ""
     167    puts {}
    168168  }
    169169  if [info exists exeObjFiles] {
    170     puts -nonewline "EXECUTABLE_OBJ = $suffix"
     170    puts -nonewline "EXECUTABLE_OBJ += $suffix"
    171171    puts [join $exeObjFiles $suffix]
    172     puts ""
     172    puts {}
    173173  }
    174174}
     
    203203DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS)
    204204
     205ifneq ($(CMSSW_FWLITE_INCLUDE_PATH),)
     206HAS_CMSSW = true
     207CXXFLAGS += $(subst :, -I,$(CMSSW_FWLITE_INCLUDE_PATH))
     208DELPHES_LIBS += $(subst include,lib,$(subst :, -L,$(CMSSW_FWLITE_INCLUDE_PATH))
     209ifneq ($(CMSSW_RELEASE_BASE),)
     210CXXFLAGS += -I$(CMSSW_RELEASE_BASE)/src
     211endif
     212ifneq ($(LD_LIBRARY_PATH),)
     213DELPHES_LIBS += $(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH))
     214endif
     215DELPHES_LIBS += -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lCommonToolsUtils
     216endif
     217
     218ifneq ($(PROMC),)
     219HAS_PROMC = true
     220CXXFLAGS += -I$(PROMC)/include
     221DELPHES_LIBS += -L$(PROMC)/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz
     222endif
     223
    205224ifneq ($(PYTHIA8),)
    206225HAS_PYTHIA8 = true
     
    231250}
    232251
    233 executableDeps
     252executableDeps {converters/*.cpp} {examples/*.cpp}
     253
     254executableDeps {readers/DelphesHepMC.cpp} {readers/DelphesLHEF.cpp} {readers/DelphesSTDHEP.cpp}
     255
     256puts {ifeq ($(HAS_CMSSW),true)}
     257executableDeps {readers/DelphesCMSFWLite.cpp}
     258puts {endif}
     259puts {}
     260
     261puts {ifeq ($(HAS_PROMC),true)}
     262executableDeps {readers/DelphesProMC.cpp}
     263sourceDeps {DELPHES} {external/ProMC/*.cc}
     264puts {endif}
     265puts {}
     266
     267puts {ifeq ($(HAS_PYTHIA8),true)}
     268executableDeps {readers/DelphesPythia8.cpp}
     269puts {endif}
     270puts {}
    234271
    235272dictDeps {DELPHES_DICT} {classes/*LinkDef.h} {modules/*LinkDef.h} {external/ExRootAnalysis/*LinkDef.h}
Note: See TracChangeset for help on using the changeset viewer.