- Timestamp:
- Jul 4, 2013, 1:04:19 PM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 0d60c9d
- Parents:
- eced822
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/genMakefile.tcl
reced822 raf9008e 36 36 foreach file $list {puts -nonewline $suffix$file} 37 37 if {$command != {}} { 38 puts ""38 puts {} 39 39 puts $command 40 40 } 41 puts ""41 puts {} 42 42 } elseif {$force} { 43 43 puts -nonewline $firstLine 44 44 if {$command != {}} { 45 puts ""45 puts {} 46 46 puts $command 47 47 } 48 puts ""48 puts {} 49 49 } 50 50 … … 73 73 puts -nonewline "${dictVar} = $suffix" 74 74 puts [join $dictSrcFiles $suffix] 75 puts ""75 puts {} 76 76 77 77 puts -nonewline "${dictVar}_OBJ = $suffix" 78 78 puts [join $dictObjFiles $suffix] 79 puts ""79 puts {} 80 80 81 81 } … … 103 103 } 104 104 105 puts -nonewline "${srcPrefix}_OBJ = $suffix"105 puts -nonewline "${srcPrefix}_OBJ += $suffix" 106 106 puts [join $srcObjFiles $suffix] 107 puts ""107 puts {} 108 108 109 109 puts {ifeq ($(HAS_PYTHIA8),true)} … … 111 111 puts [join $srcObjFilesPythia8 $suffix] 112 112 puts {endif} 113 puts ""113 puts {} 114 114 } 115 115 … … 135 135 puts -nonewline "TCL_OBJ = $suffix" 136 136 puts [join $srcObjFiles $suffix] 137 puts ""138 } 139 140 proc executableDeps { } {137 puts {} 138 } 139 140 proc executableDeps {args} { 141 141 142 142 global prefix suffix objSuf exeSuf 143 143 144 set executable [ glob -nocomplain {readers/*.cpp} {converters/*.cpp} {examples/*.cpp}]144 set executable [eval glob -nocomplain $args] 145 145 146 146 set exeFiles {} 147 147 148 148 foreach fileName $executable { 149 if {$fileName == "examples/Delphes CMSFWLite.cpp" || $fileName == "examples/DelphesProMC.cpp"} continue149 if {$fileName == "examples/DelphesProMC.cpp"} continue 150 150 151 151 regsub {\.cpp} $fileName {} exeObjName … … 157 157 158 158 puts "$exeName$exeSuf:$suffix$exeObjName$objSuf" 159 puts ""159 puts {} 160 160 161 161 dependencies $fileName "$exeObjName$objSuf:$suffix$fileName" … … 163 163 164 164 if [info exists exeFiles] { 165 puts -nonewline "EXECUTABLE = $suffix"165 puts -nonewline "EXECUTABLE += $suffix" 166 166 puts [join $exeFiles $suffix] 167 puts ""167 puts {} 168 168 } 169 169 if [info exists exeObjFiles] { 170 puts -nonewline "EXECUTABLE_OBJ = $suffix"170 puts -nonewline "EXECUTABLE_OBJ += $suffix" 171 171 puts [join $exeObjFiles $suffix] 172 puts ""172 puts {} 173 173 } 174 174 } … … 203 203 DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS) 204 204 205 ifneq ($(CMSSW_FWLITE_INCLUDE_PATH),) 206 HAS_CMSSW = true 207 CXXFLAGS += $(subst :, -I,$(CMSSW_FWLITE_INCLUDE_PATH)) 208 DELPHES_LIBS += $(subst include,lib,$(subst :, -L,$(CMSSW_FWLITE_INCLUDE_PATH)) 209 ifneq ($(CMSSW_RELEASE_BASE),) 210 CXXFLAGS += -I$(CMSSW_RELEASE_BASE)/src 211 endif 212 ifneq ($(LD_LIBRARY_PATH),) 213 DELPHES_LIBS += $(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH)) 214 endif 215 DELPHES_LIBS += -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lCommonToolsUtils 216 endif 217 218 ifneq ($(PROMC),) 219 HAS_PROMC = true 220 CXXFLAGS += -I$(PROMC)/include 221 DELPHES_LIBS += -L$(PROMC)/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz 222 endif 223 205 224 ifneq ($(PYTHIA8),) 206 225 HAS_PYTHIA8 = true … … 231 250 } 232 251 233 executableDeps 252 executableDeps {converters/*.cpp} {examples/*.cpp} 253 254 executableDeps {readers/DelphesHepMC.cpp} {readers/DelphesLHEF.cpp} {readers/DelphesSTDHEP.cpp} 255 256 puts {ifeq ($(HAS_CMSSW),true)} 257 executableDeps {readers/DelphesCMSFWLite.cpp} 258 puts {endif} 259 puts {} 260 261 puts {ifeq ($(HAS_PROMC),true)} 262 executableDeps {readers/DelphesProMC.cpp} 263 sourceDeps {DELPHES} {external/ProMC/*.cc} 264 puts {endif} 265 puts {} 266 267 puts {ifeq ($(HAS_PYTHIA8),true)} 268 executableDeps {readers/DelphesPythia8.cpp} 269 puts {endif} 270 puts {} 234 271 235 272 dictDeps {DELPHES_DICT} {classes/*LinkDef.h} {modules/*LinkDef.h} {external/ExRootAnalysis/*LinkDef.h}
Note:
See TracChangeset
for help on using the changeset viewer.