Changeset 2eb25b1 in git for doc/genMakefile.tcl
- Timestamp:
- Dec 9, 2014, 4:37:55 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 624dc48
- Parents:
- ad3b7ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/genMakefile.tcl
rad3b7ce r2eb25b1 53 53 } 54 54 55 proc dictDeps {dict Varargs} {55 proc dictDeps {dictPrefix args} { 56 56 57 57 global prefix suffix srcSuf objSuf pcmSuf … … 78 78 } 79 79 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" 85 81 puts [join $dictObjFiles $suffix] 86 82 puts {} 87 83 88 puts -nonewline "${dict Var}_PCM += $suffix"84 puts -nonewline "${dictPrefix}_PCM += $suffix" 89 85 puts [join $dictPcmFiles $suffix] 90 86 puts {} … … 98 94 99 95 set srcObjFiles {} 96 set srcObjFilesFastJet {} 100 97 set srcObjFilesPythia8 {} 101 98 … … 106 103 if {$fileName == "modules/PileUpMergerPythia8.cc"} { 107 104 lappend srcObjFilesPythia8 $srcObjName$objSuf 105 } elseif {[string match {modules/FastJet*.cc} $fileName] && $srcPrefix != {FASTJET}} { 106 continue 108 107 } else { 109 108 lappend srcObjFiles $srcObjName$objSuf … … 246 245 ### 247 246 247 NOFASTJET = libDelphesNoFastJet.$(DllSuf) 248 NOFASTJETLIB = libDelphesNoFastJet.lib 249 248 250 DELPHES = libDelphes.$(DllSuf) 249 251 DELPHESLIB = libDelphes.lib … … 282 284 dictDeps {DELPHES_DICT} {classes/ClassesLinkDef.h} {modules/ModulesLinkDef.h} {external/ExRootAnalysis/ExRootAnalysisLinkDef.h} 283 285 286 dictDeps {FASTJET_DICT} {modules/FastJetLinkDef.h} 287 284 288 dictDeps {DISPLAY_DICT} {display/DisplayLinkDef.h} 285 289 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} 290 sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/Hector/*.cc} 291 292 sourceDeps {FASTJET} {modules/FastJet*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} {external/fastjet/contribs/*/*.cc} 287 293 288 294 sourceDeps {DISPLAY} {display/*.cc} … … 297 303 298 304 ifeq ($(ROOT_MAJOR),6) 299 all: $( DELPHES) $(DELPHES_DICT_PCM) $(EXECUTABLE)305 all: $(NOFASTJET) $(DELPHES) $(DELPHES_DICT_PCM) $(FASTJET_DICT_PCM) $(EXECUTABLE) 300 306 display: $(DISPLAY) $(DISPLAY_DICT_PCM) 301 307 else 302 all: $( DELPHES) $(EXECUTABLE)308 all: $(NOFASTJET) $(DELPHES) $(EXECUTABLE) 303 309 display: $(DISPLAY) 304 310 endif 305 311 306 $( DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)312 $(NOFASTJET): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) 307 313 @mkdir -p $(@D) 308 314 @echo ">> Building $@" … … 321 327 ifeq ($(PLATFORM),win32) 322 328 @bindexplib $* $^ > $*.def 329 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(NOFASTJETLIB) 330 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@ 331 @$(MT_DLL) 332 else 333 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 334 @$(MT_DLL) 335 endif 336 endif 337 endif 338 339 $(DELPHES): $(DELPHES_DICT_OBJ) $(FASTJET_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(TCL_OBJ) 340 @mkdir -p $(@D) 341 @echo ">> Building $@" 342 ifeq ($(ARCH),aix5) 343 @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^ 344 else 345 ifeq ($(PLATFORM),macosx) 346 # We need to make both the .dylib and the .so 347 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 348 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 349 ifeq ($(MACOSX_MINOR),4) 350 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 351 endif 352 endif 353 else 354 ifeq ($(PLATFORM),win32) 355 @bindexplib $* $^ > $*.def 323 356 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB) 324 357 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@ … … 331 364 endif 332 365 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) 334 367 @mkdir -p $(@D) 335 368 @echo ">> Building $@" … … 359 392 360 393 clean: 361 @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $( DISPLAY_OBJ) $(TCL_OBJ) core394 @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core 362 395 @rm -rf tmp 363 396 364 397 distclean: 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) 366 399 367 400 dist: … … 396 429 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 397 430 431 $(FASTJET_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 432 @mkdir -p $(@D) 433 @echo ">> Compiling $<" 434 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 435 398 436 $(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 399 437 @mkdir -p $(@D) … … 406 444 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 407 445 446 $(FASTJET_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 447 @mkdir -p $(@D) 448 @echo ">> Compiling $<" 449 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 450 408 451 $(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 409 452 @mkdir -p $(@D) … … 421 464 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 422 465 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) 424 467 @echo ">> Building $@" 425 468 @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@
Note:
See TracChangeset
for help on using the changeset viewer.