Changes in doc/genMakefile.tcl [2eb25b1:6427420] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/genMakefile.tcl
r2eb25b1 r6427420 53 53 } 54 54 55 proc dictDeps {dict Prefixargs} {55 proc dictDeps {dictVar args} { 56 56 57 57 global prefix suffix srcSuf objSuf pcmSuf … … 78 78 } 79 79 80 puts -nonewline "${dictPrefix}_OBJ += $suffix" 80 puts -nonewline "${dictVar} += $suffix" 81 puts [join $dictSrcFiles $suffix] 82 puts {} 83 84 puts -nonewline "${dictVar}_OBJ += $suffix" 81 85 puts [join $dictObjFiles $suffix] 82 86 puts {} 83 87 84 puts -nonewline "${dict Prefix}_PCM += $suffix"88 puts -nonewline "${dictVar}_PCM += $suffix" 85 89 puts [join $dictPcmFiles $suffix] 86 90 puts {} … … 94 98 95 99 set srcObjFiles {} 96 set srcObjFilesFastJet {}97 100 set srcObjFilesPythia8 {} 98 101 … … 103 106 if {$fileName == "modules/PileUpMergerPythia8.cc"} { 104 107 lappend srcObjFilesPythia8 $srcObjName$objSuf 105 } elseif {[string match {modules/FastJet*.cc} $fileName] && $srcPrefix != {FASTJET}} {106 continue107 108 } else { 108 109 lappend srcObjFiles $srcObjName$objSuf … … 245 246 ### 246 247 247 NOFASTJET = libDelphesNoFastJet.$(DllSuf)248 NOFASTJETLIB = libDelphesNoFastJet.lib249 250 248 DELPHES = libDelphes.$(DllSuf) 251 249 DELPHESLIB = libDelphes.lib … … 284 282 dictDeps {DELPHES_DICT} {classes/ClassesLinkDef.h} {modules/ModulesLinkDef.h} {external/ExRootAnalysis/ExRootAnalysisLinkDef.h} 285 283 286 dictDeps {FASTJET_DICT} {modules/FastJetLinkDef.h}287 288 284 dictDeps {DISPLAY_DICT} {display/DisplayLinkDef.h} 289 285 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} 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} 293 287 294 288 sourceDeps {DISPLAY} {display/*.cc} … … 303 297 304 298 ifeq ($(ROOT_MAJOR),6) 305 all: $( NOFASTJET) $(DELPHES) $(DELPHES_DICT_PCM) $(FASTJET_DICT_PCM) $(EXECUTABLE)299 all: $(DELPHES) $(DELPHES_DICT_PCM) $(EXECUTABLE) 306 300 display: $(DISPLAY) $(DISPLAY_DICT_PCM) 307 301 else 308 all: $( NOFASTJET) $(DELPHES) $(EXECUTABLE)302 all: $(DELPHES) $(EXECUTABLE) 309 303 display: $(DISPLAY) 310 304 endif 311 305 312 $( NOFASTJET): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)306 $(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) 313 307 @mkdir -p $(@D) 314 308 @echo ">> Building $@" … … 327 321 ifeq ($(PLATFORM),win32) 328 322 @bindexplib $* $^ > $*.def 329 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(NOFASTJETLIB)330 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@331 @$(MT_DLL)332 else333 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)334 @$(MT_DLL)335 endif336 endif337 endif338 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 else345 ifeq ($(PLATFORM),macosx)346 # We need to make both the .dylib and the .so347 @$(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 endif352 endif353 else354 ifeq ($(PLATFORM),win32)355 @bindexplib $* $^ > $*.def356 323 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB) 357 324 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@ … … 364 331 endif 365 332 366 $(DISPLAY): $(DELPHES_DICT_OBJ) $( FASTJET_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ)333 $(DISPLAY): $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) 367 334 @mkdir -p $(@D) 368 335 @echo ">> Building $@" … … 392 359 393 360 clean: 394 @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $( FASTJET_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core361 @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core 395 362 @rm -rf tmp 396 363 397 364 distclean: clean 398 @rm -f $( NOFASTJET) $(NOFASTJETLIB) $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(FASTJET_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE)365 @rm -f $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE) 399 366 400 367 dist: … … 429 396 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 430 397 431 $( FASTJET_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)398 $(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 432 399 @mkdir -p $(@D) 433 400 @echo ">> Compiling $<" 434 401 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 435 402 436 $(D ISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)403 $(DELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 437 404 @mkdir -p $(@D) 438 405 @echo ">> Compiling $<" 439 406 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 440 407 441 $(D ELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)408 $(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 442 409 @mkdir -p $(@D) 443 410 @echo ">> Compiling $<" 444 411 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 445 412 446 $(FASTJET_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 413 $(TCL_OBJ): tmp/%.$(ObjSuf): %.c 414 @mkdir -p $(@D) 415 @echo ">> Compiling $<" 416 @$(CC) $(patsubst -std=%,,$(CXXFLAGS)) -c $< $(OutPutOpt)$@ 417 418 $(EXECUTABLE_OBJ): tmp/%.$(ObjSuf): %.cpp 447 419 @mkdir -p $(@D) 448 420 @echo ">> Compiling $<" 449 421 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 450 422 451 $(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 452 @mkdir -p $(@D) 453 @echo ">> Compiling $<" 454 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 455 456 $(TCL_OBJ): tmp/%.$(ObjSuf): %.c 457 @mkdir -p $(@D) 458 @echo ">> Compiling $<" 459 @$(CC) $(patsubst -std=%,,$(CXXFLAGS)) -c $< $(OutPutOpt)$@ 460 461 $(EXECUTABLE_OBJ): tmp/%.$(ObjSuf): %.cpp 462 @mkdir -p $(@D) 463 @echo ">> Compiling $<" 464 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 465 466 $(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(FASTJET_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(TCL_OBJ) 423 $(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) 467 424 @echo ">> Building $@" 468 425 @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@
Note:
See TracChangeset
for help on using the changeset viewer.