Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/genMakefile.tcl

    r2eb25b1 r6427420  
    5353}
    5454
    55 proc dictDeps {dictPrefix args} {
     55proc dictDeps {dictVar args} {
    5656
    5757  global prefix suffix srcSuf objSuf pcmSuf
     
    7878  }
    7979
    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"
    8185  puts [join $dictObjFiles $suffix]
    8286  puts {}
    8387
    84   puts -nonewline "${dictPrefix}_PCM += $suffix"
     88  puts -nonewline "${dictVar}_PCM += $suffix"
    8589  puts [join $dictPcmFiles $suffix]
    8690  puts {}
     
    9498
    9599  set srcObjFiles {}
    96   set srcObjFilesFastJet {}
    97100  set srcObjFilesPythia8 {}
    98101
     
    103106    if {$fileName == "modules/PileUpMergerPythia8.cc"} {
    104107      lappend srcObjFilesPythia8 $srcObjName$objSuf
    105     } elseif {[string match {modules/FastJet*.cc} $fileName] && $srcPrefix != {FASTJET}} {
    106       continue
    107108    } else {
    108109      lappend srcObjFiles $srcObjName$objSuf
     
    245246###
    246247
    247 NOFASTJET = libDelphesNoFastJet.$(DllSuf)
    248 NOFASTJETLIB = libDelphesNoFastJet.lib
    249 
    250248DELPHES = libDelphes.$(DllSuf)
    251249DELPHESLIB = libDelphes.lib
     
    284282dictDeps {DELPHES_DICT} {classes/ClassesLinkDef.h} {modules/ModulesLinkDef.h} {external/ExRootAnalysis/ExRootAnalysisLinkDef.h}
    285283
    286 dictDeps {FASTJET_DICT} {modules/FastJetLinkDef.h}
    287 
    288284dictDeps {DISPLAY_DICT} {display/DisplayLinkDef.h}
    289285
    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}
     286sourceDeps {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}
    293287
    294288sourceDeps {DISPLAY} {display/*.cc}
     
    303297
    304298ifeq ($(ROOT_MAJOR),6)
    305 all: $(NOFASTJET) $(DELPHES) $(DELPHES_DICT_PCM) $(FASTJET_DICT_PCM) $(EXECUTABLE)
     299all: $(DELPHES) $(DELPHES_DICT_PCM) $(EXECUTABLE)
    306300display: $(DISPLAY) $(DISPLAY_DICT_PCM)
    307301else
    308 all: $(NOFASTJET) $(DELPHES) $(EXECUTABLE)
     302all: $(DELPHES) $(EXECUTABLE)
    309303display: $(DISPLAY)
    310304endif
    311305
    312 $(NOFASTJET): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
     306$(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
    313307        @mkdir -p $(@D)
    314308        @echo ">> Building $@"
     
    327321ifeq ($(PLATFORM),win32)
    328322        @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
    356323        @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB)
    357324        @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@
     
    364331endif
    365332
    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)
    367334        @mkdir -p $(@D)
    368335        @echo ">> Building $@"
     
    392359
    393360clean:
    394         @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core
     361        @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core
    395362        @rm -rf tmp
    396363
    397364distclean: 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)
    399366
    400367dist:
     
    429396        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    430397
    431 $(FASTJET_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
     398$(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
    432399        @mkdir -p $(@D)
    433400        @echo ">> Compiling $<"
    434401        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    435402
    436 $(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
     403$(DELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
    437404        @mkdir -p $(@D)
    438405        @echo ">> Compiling $<"
    439406        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    440407
    441 $(DELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
     408$(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
    442409        @mkdir -p $(@D)
    443410        @echo ">> Compiling $<"
    444411        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    445412
    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
    447419        @mkdir -p $(@D)
    448420        @echo ">> Compiling $<"
    449421        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    450422
    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)
    467424        @echo ">> Building $@"
    468425        @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@
Note: See TracChangeset for help on using the changeset viewer.